Interface ChildLoggerOptions<CustomLevels>

interface ChildLoggerOptions<CustomLevels> {
    level?: LevelOrString;
    serializers?: {
        [key: string]: SerializerFn;
    };
    customLevels?: {
        [level in string]: number
    };
    formatters?: {
        level?: ((label: string, number: number) => object);
        bindings?: ((bindings: Bindings) => object);
        log?: ((object: object) => object);
    };
    redact?: string[] | redactOptions;
    msgPrefix?: string;
}

Type Parameters

  • CustomLevels extends string = never

Hierarchy (view full)

Properties

serializers?: {
    [key: string]: SerializerFn;
}
customLevels?: {
    [level in string]: number
}
formatters?: {
    level?: ((label: string, number: number) => object);
    bindings?: ((bindings: Bindings) => object);
    log?: ((object: object) => object);
}
redact?: string[] | redactOptions
msgPrefix?: string