magiclogger - v0.1.0
    Preparing search index...

    Type Alias ThemeDefinition

    ThemeDefinition: Partial<Record<StylePreset | string, ColorName[]>> & {
        tags?: Record<string, ColorName[]>;
    }

    A theme definition maps log levels, style presets, and tags to arrays of color/style names. Keys are StylePreset strings such as 'info', 'error', 'success', or custom presets. Tags can have associated styles that are automatically applied.

    Type Declaration

    • Optionaltags?: Record<string, ColorName[]>

      Tag-specific styles that are automatically applied when tags are used. Maps tag names to arrays of color/style names.

    {
    * info: ['cyan', 'bold'],
    * error: ['brightRed', 'bold'],
    * header: ['brightWhite', 'bgBlue', 'bold'],
    * tags: {
    * api: ['cyan', 'bold'],
    * database: ['yellow'],
    * critical: ['white', 'bgRed', 'bold']
    * }
    * }