Class ThreadLogUtil
java.lang.Object
com.espertech.esper.common.internal.util.ThreadLogUtil
Utility class for logging threading-related messages.
Prints thread information and lock-specific info.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Enable info logging.static final boolean
Enable trace logging.static int
Set info log level.static int
Set trace log level. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
If enabled, logs for info level the given objects and textstatic void
If enabled, logs for trace level the given objects and textstatic void
traceLock
(String lockAction, ReentrantLock lock) Logs the lock and action.static void
traceLock
(String lockAction, ReentrantReadWriteLock lock) Logs the lock and action.
-
Field Details
-
trace
public static int traceSet trace log level. -
info
public static int infoSet info log level. -
ENABLED_TRACE
public static final boolean ENABLED_TRACEEnable trace logging.- See Also:
-
ENABLED_INFO
public static final boolean ENABLED_INFOEnable info logging.- See Also:
-
-
Constructor Details
-
ThreadLogUtil
public ThreadLogUtil()
-
-
Method Details
-
trace
If enabled, logs for trace level the given objects and text- Parameters:
text
- to logobjects
- to write
-
info
If enabled, logs for info level the given objects and text- Parameters:
text
- to logobjects
- to write
-
traceLock
Logs the lock and action.- Parameters:
lockAction
- is the action towards the locklock
- is the lock instance
-
traceLock
Logs the lock and action.- Parameters:
lockAction
- is the action towards the locklock
- is the lock instance
-