interface ColorizeOptions {
    all?: boolean;
    colors?: Record<string, string>;
    level?: boolean;
    message?: boolean;
}

Hierarchy (view full)

Properties

all?: boolean

If set to true the color will be applied to the message and level.

colors?: Record<string, string>

An object containing the colors for the log levels. For example: { info: 'blue', error: 'red' }.

level?: boolean

If set to true the color will be applied to the level.

message?: boolean

If set to true the color will be applied to the message.