Skip to main content

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)