@jalik/logger
Advanced tools
Changelog
v3.0.0 (2021-05-27)
log()
in Logger
to log(level: string, message: string, context: object)
clone()
, on()
and off()
in Loggerconsole
, displayContext
and displayName
from Logger
constructorimport { Logger } from '@jalik/logger'
)FATAL
constant log levelfatal(string|Error, object)
in Loggerlevel: string
in Logger constructor (default: info
), it can be one of debug
, info
, warn
, error
or fatal
outputs: Array<function>
in Logger constructor (default: [consoleOutput()]
)defaultContext: null|object
in Logger constructor (default: null
)filter: null|function
in Logger constructor (default: null
)Changelog
v2.2.7 (2020-11-10)
esnext
and sideEffects
in package.json