Construct a log event that will always be logged. |
|
Construct a debug log event. |
|
Check if the current logger's logging level enables logging on the debug level. |
|
Construct an error log event. |
|
Check if the current logger's logging level enables logging on the error level. |
|
Construct a fatal log event. |
|
Check if the current logger's logging level enables logging on the fatal level. |
|
Construct an info log event. |
|
Check if the current logger's logging level enables logging on the info level. |
|
Get the logging level of this logger |
|
Construct a trace log event. |
|
Check if the current logger's logging level enables logging on the trace level. |
|
Construct a warn log event. |
|
Check if the current logger's logging level enables logging on the warn level. |
|
|
Set the level for this logger. |
|
|
Construct a log event that will always be logged. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.always.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Construct a debug log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.debug.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the debug level.
Return true if the logger's level is set to debug or trace. |
|
|
Returns Boolean true if 'debug' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Construct an error log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.error.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the error level.
Return true if the logger's level is set to error, warn, info, debug or trace. |
|
|
Returns Boolean true if 'error' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Construct a fatal log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.fatal.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the fatal level.
Return true if the logger's level is set to fatal, error, warn, info, debug or trace. |
|
|
Returns Boolean true if 'fatal' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Construct an info log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.info.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the info level.
Return true if the logger's level is set to info, debug or trace. |
|
|
Returns Boolean true if 'info' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Get the logging level of this logger |
|
|
Returns String the logging level of this logger |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Construct a trace log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.trace.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the trace level.
Return true if the logger's level is set to trace. |
|
|
Returns Boolean true if 'trace' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Construct a warn log event. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger();
log.warn.log("some message and {} {}", "some", "arguments"); |
|
|
|
|
Check if the current logger's logging level enables logging on the warn level.
Return true if the logger's level is set to warn, info, debug or trace. |
|
|
Returns Boolean true if 'warn' level is enabled for logging |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
|
Set the level for this logger.
Be aware that this will override the logging level as configured in log4j.xml,
meaning it affects all JSLogger instances based on that configuration.
This changes the global configuration,
meaning that restarting the client will not reset the logging level to it's default state.
Only restarting the application server will reset the logging level to it's default state. |
|
|
Parameters the desired logging level for this logger |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var log = application.getLogger("myLogger");
log.setLevel(log.info); |
|
|
|
|
|
|