Log a message with ERROR level.
Return currently configured level for given module.
Log a message with INFO level.
Log a message with INSANE level.
Log a message with DEBUG/LOG level.
Log a message with TRACE level.
Log a message with WARN level.
StaticconfigureGlobal configuration of all loggers.
Parse configuration options from an input string typically obtained
from environment variable JAM_LOG.
OptionalworkingDir: stringStaticconfigureGlobal configuration of all loggers.
One can specify a default logging level (only logs with level >= default will be printed). It's also possible to configure per-module logging level that takes precedence over the default one.
Changing the options affects all previously created loggers.
StaticnewCreate a new logger instance given filename and an optional module name.
If the module name is not given, fileName becomes the module name.
The module name can be composed from multiple parts separated with /.
The logger will use a global configuration which can be changed using
[configureLogger] function.
OptionalfileName: stringOptionalmoduleName: string
A logger instance.