Skip to content

level

get level(): ZylogLevel
set level(level: ZylogLevel)

Logs with a severity below the current level will be ignored. This is a shorthand for updating the level property within the config object.

zylog.level = 'debug';
zylog.debug('This will now be logged');