KuzzleLoggerConfig #
Configuration type for the KuzzleLogger constructor.
Type Definition #
interface KuzzleLoggerConfig {
getMergingObject?: () => JSONObject;
level?: string;
serviceName?: string;
skipPinoInstance?: boolean;
transport?: TransportConfig;
}
Properties #
getMergingObject #
getMergingObject?: () => JSONObject
Optional function that returns an object to merge with all log entries. This is useful for adding consistent metadata to all logs.
level #
level?: string
The minimum log level to output. Valid values are:
'fatal'
'error'
'warn'
'info'
'debug'
'trace'
serviceName #
serviceName?: string
Name of the service for identification in logs.
skipPinoInstance #
skipPinoInstance?: boolean
If true, skips the creation of a Pino instance. This is used internally for child loggers.
transport #
transport?: TransportConfig
Transport configuration that determines how and where logs are written. See TransportConfig for details.
Edit this page on Github(opens new window)