A decorator that adds level filtering to any Logger.
Only messages at or above the configured minimum level are forwarded to the underlying logger. The default underlying logger is console.
console
// Only warn and error go to console.const logger = new LogLevel('warn'); Copy
// Only warn and error go to console.const logger = new LogLevel('warn');
Logs a debug-level message.
Logs an error-level message.
Logs an info-level message.
Logs a warn-level message.
A decorator that adds level filtering to any Logger.
Only messages at or above the configured minimum level are forwarded to the underlying logger. The default underlying logger is
console.Example