ZenFS
    Preparing search index...

    Interface Configuration

    interface Configuration {
        dumpBacklog?: boolean;
        enabled?: boolean;
        level?:
            | "emergency"
            | "alert"
            | "critical"
            | "error"
            | "warning"
            | "notice"
            | "info"
            | "debug"
            | Level;
        stack?: boolean;
        format(this: void, entry: Entry): string | Iterable<string, any, any>;
        output(this: void, ...message: string[]): unknown;
    }
    Index

    Properties

    dumpBacklog?: boolean

    If set, output() all current entries after configure is done

    false
    
    enabled?: boolean

    If false, log messages will not be recorded or outputted

    false
    
    level?:
        | "emergency"
        | "alert"
        | "critical"
        | "error"
        | "warning"
        | "notice"
        | "info"
        | "debug"
        | Level

    The minimum level needed to output a message

    Level.ALERT
    
    stack?: boolean

    Whether to include stack traces.

    false
    

    Methods

    • Formats a log entry into a string

      Parameters

      Returns string | Iterable<string, any, any>

      [${ms / 1000}] ${message}

    • Outputs a log message

      Parameters

      • this: void
      • ...message: string[]

      Returns unknown

      console.error()