logging-utils
Advanced tools
Changelog
4.0.6
isLoggingConfigured
function to check for non-defined target
argumentChangelog
4.0.5
core-functions
dependency to version 3.0.6test/package.json
Changelog
4.0.4
core-functions
dependency to version 3.0.5Changelog
4.0.3
core-functions
dependency to version 3.0.4Changelog
4.0.1
core-functions
dependency to version 3.0.2Changelog
4.0.0
logging.js
API (NOT BACKWARD COMPATIBLE!):
underlyingLogger
parameter from configureLogging
function, which was ignored when settings
were
provided and was also redundant, since it can be set via the settings
parameterconfigureLoggingWithSettings
, configureDefaultLogging
and getDefaultLoggingSettings
functionsERROR
, WARN
, INFO
, DEBUG
and TRACE
constants with properties in new LogLevel
constant to
simplify import & usage and changed their values to uppercase for consistencytoValidLogLevelOrDefault
functionLogging
typedef to Logger
log
method to the target object during configureLogging
to enable logging at a specified levellog
function, which delegates to new log
method to enable logging at a specified levelisValidLogLevel
and new cleanLogLevel
functionsenvLogLevelName
setting to enable configuration of the name of the environment variable in which to look
for a logLevel on process.env
(defaults to 'LOG_LEVEL' if undefined)process.env[envLogLevelName]
, where envLogLevelName
refers to the
configured name of the environment variable in which to look for a logLevel on process.env
core-functions
dependency to version 3.0.0Changelog
3.0.12
core-functions
dependency to version 2.0.14