Class ThreadLogUtil

java.lang.Object
com.espertech.esper.common.internal.util.ThreadLogUtil

public class ThreadLogUtil extends Object
Utility class for logging threading-related messages.

Prints thread information and lock-specific info.

  • Field Details

    • trace

      public static int trace
      Set trace log level.
    • info

      public static int info
      Set info log level.
    • ENABLED_TRACE

      public static final boolean ENABLED_TRACE
      Enable trace logging.
      See Also:
    • ENABLED_INFO

      public static final boolean ENABLED_INFO
      Enable info logging.
      See Also:
  • Constructor Details

    • ThreadLogUtil

      public ThreadLogUtil()
  • Method Details

    • trace

      public static void trace(String text, Object... objects)
      If enabled, logs for trace level the given objects and text
      Parameters:
      text - to log
      objects - to write
    • info

      public static void info(String text, Object... objects)
      If enabled, logs for info level the given objects and text
      Parameters:
      text - to log
      objects - to write
    • traceLock

      public static void traceLock(String lockAction, ReentrantLock lock)
      Logs the lock and action.
      Parameters:
      lockAction - is the action towards the lock
      lock - is the lock instance
    • traceLock

      public static void traceLock(String lockAction, ReentrantReadWriteLock lock)
      Logs the lock and action.
      Parameters:
      lockAction - is the action towards the lock
      lock - is the lock instance