Abstract
Abstract logging method to implement the actual logging operation.
default loglevel for all log events
Static
debugLog debug event. Debug events are prettyprinted.
domain of the log event
channel of the log event
method of the log event
message of the log event
Optional
data: anystructured data associated with the log event
Static
errorLog error event. Error events are printed as a single line.
domain of the log event
channel of the log event
method of the log event
message of the log event
Optional
data: anystructured data associated with the log event
Static
exceptionLog exception event. Exception events are prettyprinted and preserve newlines so that stack traces are readable.
domain of the log event
channel of the log event
method of the log event
message of the log event
Optional
data: anystructured data associated with the log event
Static
exportGet current log levels as an array of objects with domain, channel, method and level.
Static
importImport log levels from an array of objects with domain, channel, method and level resetting existing values (i.e. non-existing values get removed).
array of log level objects
Static
infoLog info event. Info events are printed as a single line.
domain of the log event
channel of the log event
method of the log event
message of the log event
Optional
data: anystructured data associated with the log event
Static
setStatic
setSet log level for given combination of domain/channel/method. Not defining dimension(s) means they match any value. Multiple settings can be combined to set different logging accuracy specifically
For example: logLevel: warning, domain: *, channel: , method: * will only output error events. logLevel: debug, domain: d1, channel: c1, method: "" will enable debug events for channel c1 of domain d1. logLevel: info, domain: d1, channel: c1, method: m1 will supress debug events for method m1.
log level to use
domain of the log event (default: "*" for all)
channel of the log event (default: "*" for all)
method of the log event (default: "*" for all)
Static
setSet log levels from an array of objects with domain, channel, method and level overwriting existing values (i.e. non-existing values are not affected).
array of log level objects
Static
warningLog warning event. Warning events are printed as a single line.
domain of the log event
channel of the log event
method of the log event
message of the log event
Optional
data: anystructured data associated with the log event
Abstract base class for logging implementations supporting