Loxer - v3.0.0
    Preparing search index...

    Interface LevelMethods

        Loxer.debug('cache miss');          // a single log at level 'debug'
    Loxer.debug.open('loading user'); // a log box at level 'debug'

    LogMethods.warn, LogMethods.info and LogMethods.debug have this shape. LogMethods.error does not: it takes an Error rather than a message, and it opens no box (see BoxLevel).

    Reading the property writes no log, so the modifiers keep working in front of it: Loxer.h().m('DB').debug.open(...). Only the call at the end of the chain resets them.

    interface LevelMethods {
        open(message?: unknown, ...props: unknown[]): OpenedLox;
        (message?: unknown, ...props: unknown[]): void;
    }
    • Parameters

      • Optionalmessage: unknown

        to log, of any type

      • ...props: unknown[]

        any number of values to attach to the log

      Returns void

    Index
    • Parameters

      • Optionalmessage: unknown

        to log, of any type

      • ...props: unknown[]

        any number of values to attach to the log

      Returns OpenedLox