Log
Package: velox.api.layer1.common
Type: Class
Inheritance: java.lang.Object รขโ โ Log
Descriptionโ
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.
Nested Classesโ
Log.LogLevel(enum)Log.LogListener(interface)Log.SimpleConsoleLogger(class)
Constructorsโ
Logโ
public Log()
Methodsโ
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)
public static void trade(String category, String message, Exception ex)
public static void trade(String message)
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)
public static void error(String category, String message, Exception ex)
public static void error(String message)
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)
public static void warn(String category, String message, Throwable ex)
public static void warn(String message)
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)
public static void info(String category, String message, Exception ex)
public static void info(String message)
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)
public static void debug(String category, String message, Exception ex)
public static void debug(String message)
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)
public static void trace(String category, String message, Exception ex)
public static void trace(String category, String message)
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()
public static void perflog(String message)
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)