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