Constructor of OINOConsoleLog
logging level
StaticdebugLog 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
Optionaldata: anystructured data associated with the log event
StaticerrorLog 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
Optionaldata: anystructured data associated with the log event
StaticexceptionLog 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
Optionaldata: anystructured data associated with the log event
StaticexportGet current log levels as an array of objects with domain, channel, method and level.
StaticimportImport 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
StaticinfoLog 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
Optionaldata: anystructured data associated with the log event
StaticsetStaticsetSet 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 warning and higher 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)
message of the log event (default: "" for all)
StaticsetSet 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
StaticwarningLog 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
Optionaldata: anystructured data associated with the log event
Logging implementation based on console.log.