Package velox.api.layer1.common
Class Log
java.lang.Object
velox.api.layer1.common.Log
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.
NOTE: this part of API is likely to change.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic Log.LogListenerReturns the current log listener that handles all log messages.static Log.LogLevelstatic voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic voidstatic voidperflog()static voidstatic voidstatic longstatic voidsetListener(Log.LogListener listener) Sets the log listener that handles all log messages replacing the previous log listener.static voidsetLogLevel(Log.LogLevel logLevel) static voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidfollow slf4j arguments passing rulesstatic void
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
setListener
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
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
-
getLogLevel
-
trade
-
trade
-
trade
-
trade
-
tradeFmt
follow slf4j arguments passing rules -
error
-
error
-
error
-
error
-
errorFmt
follow slf4j arguments passing rules -
warn
-
warn
-
warn
-
warn
-
warnFmt
follow slf4j arguments passing rules -
info
-
info
-
info
-
info
-
infoFmt
follow slf4j arguments passing rules -
debug
-
debug
-
debug
-
debug
-
debugFmt
follow slf4j arguments passing rules -
trace
-
trace
-
trace
-
trace
-
traceFmt
follow slf4j arguments passing rules -
perflog
public static void perflog() -
perflog
-
perflog
-
perflogReset
public static long perflogReset() -
warnFree
-
infoFree
-
debugFree
-
traceFree
-
tradeFree
-