@zero-version/logging.level
v9.9.14
Published
Level implementation of @zero-version/logging.
Downloads
16
Readme
Level implementation of @zero-version/logging.
Usage
This log level implementation of a logger restricts what is logged using a log level.
import { logLevelEnum } from '@zero-version/logging';
import { loggerConsole } from '@zero-version/logging.console';
import { loggerLevel } from '@zero-version/logging.level';
const console = loggerConsole();
const logger = loggerLevel(console, logLevelEnum.info);
logger.info('Hello, world!');
// -> Hello, world!
logger.trace('Hello, world!');
// -> <nothing>
Support ☕
Are you using a package I've developed and finding it useful? Or have you looked at one of my repositories and learnt something new? If so, please consider buying me a coffee. Thanks!