Class Log

java.lang.Object
velox.api.layer1.common.Log

public class Log extends Object
Allows you to write messages to bookmap log, all methods with suffix "Fmt" should follow slf4j arguments passing rules.
NOTE: this part of API is likely to change.
  • Constructor Details

    • Log

      public Log()
  • Method Details

    • setListener

      public static void setListener(Log.LogListener listener)
      Sets the log listener that handles all log messages replacing the previous log listener. Normally for internal use only: you should not change it, unless you really know what you are doing.
      Parameters:
      listener - the listener that should handle log messages
    • getListener

      public static Log.LogListener getListener()
      Returns the current log listener that handles all log messages. Normally for internal use only: you should not use it, unless you really know what you are doing.
      Returns:
      current log listener that handles all log messages
    • setLogLevel

      public static void setLogLevel(Log.LogLevel logLevel)
    • getLogLevel

      public static Log.LogLevel getLogLevel()
    • trade

      public static void trade(String message, Exception ex)
    • trade

      public static void trade(String category, String message, Exception ex)
    • trade

      public static void trade(String message)
    • trade

      public static void trade(String category, String message)
    • tradeFmt

      public static void tradeFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • error

      public static void error(String message, Throwable ex)
    • error

      public static void error(String category, String message, Exception ex)
    • error

      public static void error(String message)
    • error

      public static void error(String category, String message)
    • errorFmt

      public static void errorFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • warn

      public static void warn(String message, Exception ex)
    • warn

      public static void warn(String category, String message, Throwable ex)
    • warn

      public static void warn(String message)
    • warn

      public static void warn(String category, String message)
    • warnFmt

      public static void warnFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • info

      public static void info(String message, Exception ex)
    • info

      public static void info(String category, String message, Exception ex)
    • info

      public static void info(String message)
    • info

      public static void info(String category, String message)
    • infoFmt

      public static void infoFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • debug

      public static void debug(String message, Exception ex)
    • debug

      public static void debug(String category, String message, Exception ex)
    • debug

      public static void debug(String message)
    • debug

      public static void debug(String category, String message)
    • debugFmt

      public static void debugFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • trace

      public static void trace(String message, Exception ex)
    • trace

      public static void trace(String category, String message, Exception ex)
    • trace

      public static void trace(String category, String message)
    • trace

      public static void trace(String message)
    • traceFmt

      public static void traceFmt(String pattern, Object... args)
      follow slf4j arguments passing rules
    • perflog

      public static void perflog()
    • perflog

      public static void perflog(String message)
    • perflog

      public static void perflog(String message, long minDelayToLogNanos)
    • perflogReset

      public static long perflogReset()
    • warnFree

      public static void warnFree(Object... messages)
    • infoFree

      public static void infoFree(Object... messages)
    • debugFree

      public static void debugFree(Object... messages)
    • traceFree

      public static void traceFree(Object... messages)
    • tradeFree

      public static void tradeFree(Object... messages)