Object created by the global Log.forModule("...") method for module-specific logging.
Platform Support
Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
---|
Constructors
Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Jaxer.Log.ModuleLogger Constructor(String moduleName, Jaxer.Log.Level The) : Jaxer.Log.ModuleLogger
An object that's created only through the global Log.forModule("...") method for module-specific logging. Usually you create
such a logger at the beginning of your module, and then use it throughout your module for logging at various levels. It has
its own level, so you can control the verbosity of logging per module.
|
Show Details | 1.0 | no | ||||||||
Jaxer.Log.ModuleLogger(String moduleName, Jaxer.Log.Level The) : Jaxer.Log.ModuleLoggerAn object that's created only through the global Log.forModule("...") method for module-specific logging. Usually you create such a logger at the beginning of your module, and then use it throughout your module for logging at various levels. It has its own level, so you can control the verbosity of logging per module. Parameters
Returns
|
Functions
Method | Action | Jaxer Server Framework | Jaxer Client Framework | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
debug(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "DEBUG" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at or below Jaxer.Log.DEBUG. This is the second-most verbose level - instrument your code with
debug() calls in those places where debugging is likely to benefit from them.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
error(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "ERROR" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at or below Jaxer.Log.ERROR. Use this to log non-fatal but nonetheless real errors.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
fatal(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "FATAL" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at or below Jaxer.Log.FATAL. Use this to log the most serious errors.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
getLevel() : Jaxer.Log.Level
Gets the level to which this ModuleLogger is set -- appending messages below this level will do nothing
|
Show Details | 1.0 | no | |||||||||
Returns
|
||||||||||||
info(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "INFO" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at or below Jaxer.Log.INFO. By default, modules are set to show messages at this level, so use
info() when you want to show log messages without needing to set the level to more verbose than usual, but don't keep info()
messages in your code long term.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
setLevel(Jaxer.Log.Level level) :
void
Sets the level below which this moduleLogger will not log messages.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
trace(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "TRACE" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at Jaxer.Log.TRACE. This is the most verbose level - instrument your code liberally with trace()
calls to be able to pinpoint any issues.
|
Show Details | 1.0 | no | |||||||||
Parameters
|
||||||||||||
warn(String message, [Error exception,] [Function inFunction]) :
void
Logs a message at the "WARN" level for this module. The message will only be appended to the log if the level for this module
(and that appender) is set at or below Jaxer.Log.WARN. Use this to warn of any unusual or unexpected, but not necessarily
erroneous, conditions.
|
Show Details | 1.0 | no | |||||||||
Parameters
|