Creates a logger factory that can be configured with prefixes, log levels, and key-based logging.
Optional
const logger = createLogger(console) .withKeys({ constructor: "info", method: "debug", auth_error: "warn", }) .withPrefix("MyApp:") .toLogger();logger.key("constructor", "This is an info message");logger.info('This is an info message'); Copy
const logger = createLogger(console) .withKeys({ constructor: "info", method: "debug", auth_error: "warn", }) .withPrefix("MyApp:") .toLogger();logger.key("constructor", "This is an info message");logger.info('This is an info message');
Creates a logger factory that can be configured with prefixes, log levels, and key-based logging.