Apr 13, 2024 22:22 Supported Clients Sample Parameters Supported Clients Sample Parameters Returns Supported Clients SampleSupported Clients
SmartClient
WebClient
NGClient
Methods Summary
void
log()
Logs an event without adding a message.
void
log(message, params)
Logs a message with or without parameters.
JSLogBuilder
withException(exception)
Includes an exception in the log event.
Methods Details
log()
Logs an event without adding a message.
This can be useful in combination with withException(e) if no message is required.
var log = application.getLogger();
log.warn.withException(myException).log();
log(message, params)
Logs a message with or without parameters.
Object
message
the message to log; the format depends on the message factory.
Array
params
parameters to the message.
var log = application.getLogger();
log.warn.log("some message {} {} {}", "with", "multiple", "arguments");
withException(exception)
Includes an exception in the log event.
Object
exception
The exception to log.
var log = application.getLogger();
log.warn.withException(myException).log("some message");