@jalik/logger
Advanced tools
Changelog
v2.2.0 (2019-02-07)
src
folder) to enable auto-completion in IDEsChangelog
v2.1.4 (2019-01-17)
'log' called on an object that does not implement interface Console
Changelog
v2.1.0 (2018-10-10)
:
after the logger name (ex: ClassLogger: test
)Logger.clone(name: String)
return
instruction in the following methods:
Logger.debug()
Logger.error()
Logger.info()
Logger.warn()
Changelog
v2.0.1 (2018-06-09)
Logger.on(event: String, listener: Function)
in READMEChangelog
v2.0.0 (2018-06-09)
Logger.on(event: String, listener: Function)
has changed to improve ease of
use. Before you had to pass
debug
, error
, info
or warning
as the first string argument, now use the log
event instead. Also in the callback, the type
of log is inserted as the second argument
after message
, thus context
is now the third argument.
Logger.on('error', (message, context) => {})
Logger.on('log', (message, type, context) => {})