Maven module :un.api : api-common :
Class : un.api.logging.Logger
Extends/Implements : -
Subclasses : -

Logger.
author  Johann Sorel


Variables : LEVEL_CRITICAL, LEVEL_WARNING, LEVEL_INFORMATION, LEVEL_DEBUG
Functions : getParametersType, getParameters, setParameters, log, log, log, debug, debug, debug, info, info, info, warning, warning, warning, critical, critical, critical


public int LEVEL_CRITICAL

public int LEVEL_WARNING

public int LEVEL_INFORMATION

public int LEVEL_DEBUG



Describe this logger parameters.
return  ParameterType, never null.
ParametersType getParametersType ()


Get this logger configuration.
return  Parameter, never null
Parameters getParameters ()


Replace this logger configuration.
Since various implementations of logger may coexist, the configuration
may be different so a LogException may be throw.
param  config , never null
throws  un.api.logging.LoggerException if configuration is incorrect
void setParameters (Parameters config)


Shortcut for : log(null,exception,level)
param  exception can be null
param  level
void log (Throwable exception, float level)


Shortcut for : log(message,level)
param  message can be null
param  level
void log (Chars message, float level)


Log given message and exception
param  message can be null
param  exception can be null
param  level loggin level high values for high importance
void log (Chars message, Throwable exception, float level)


Shortcut for : log(message,null,LEVEL_DEBUG)
param  message can be null
void debug (Chars message)


Shortcut for : log(message,exception,LEVEL_DEBUG)
param  message can be null
param  exception can be null
void debug (Chars message, Throwable exception)


Shortcut for : log(exception,LEVEL_DEBUG)
param  exception can be null
void debug (Throwable exception)


Shortcut for : log(message,null,LEVEL_INFORMATION)
param  message can be null
void info (Chars message)


Shortcut for : log(message,exception,LEVEL_INFORMATION)
param  message can be null
param  exception can be null
void info (Chars message, Throwable exception)


Shortcut for : log(exception,LEVEL_INFORMATION)
param  exception can be null
void info (Throwable exception)


Shortcut for : log(message,null,LEVEL_WARNING)
param  message can be null
void warning (Chars message)


Shortcut for : log(message,exception,LEVEL_WARNING)
param  message can be null
param  exception can be null
void warning (Chars message, Throwable exception)


Shortcut for : log(exception,LEVEL_WARNING)
param  exception can be null
void warning (Throwable exception)


Shortcut for : log(message,null,LEVEL_CRITICAL)
param  message can be null
void critical (Chars message)


Shortcut for : log(message,exception,LEVEL_CRITICAL)
param  message can be null
param  exception can be null
void critical (Chars message, Throwable exception)


Shortcut for : log(exception,LEVEL_CRITICAL)
param  exception can be null
void critical (Throwable exception)