Skip to main content

createLogger()

function createLogger(name, options?): ILogger

Creates and configures a new named logger based on the base logger.

Named loggers allow specific modules or areas of your application to have their own logging levels and behaviors. These loggers inherit configuration from the base logger by default but can override settings independently.

Parameters

ParameterType
namestring
options?CreateLoggerOptions

Returns

ILogger