Loxer - v3.0.0
    Preparing search index...

    Interface OfLoxes

    Methods returned from the LogMethods.of method

    interface OfLoxes {
        add(message?: unknown, ...props: unknown[]): void;
        warn(message?: unknown, ...props: unknown[]): void;
        info(message?: unknown, ...props: unknown[]): void;
        debug(message?: unknown, ...props: unknown[]): void;
        close(message?: unknown, ...props: unknown[]): void;
        error(error: ErrorType, ...props: unknown[]): void;
        namedError(name: string, message: string, ...props: unknown[]): void;
    }

    Hierarchy (View Summary)

    Index
    • assigns a single log to a log box and imitates the behavior of LogMethods.log

      Parameters

      • Optionalmessage: unknown
      • ...props: unknown[]

      Returns void

    • assigns a single 'warn' level log to a log box

      • the log reports 'warn' and is shown wherever the module reaches 'warn', even where the box itself is hidden

      Parameters

      • Optionalmessage: unknown
      • ...props: unknown[]

      Returns void

    • assigns a single 'info' level log to a log box

      • the log reports 'info' and is shown wherever the module reaches 'info', even where the box itself is hidden

      Parameters

      • Optionalmessage: unknown
      • ...props: unknown[]

      Returns void

    • assigns a single 'debug' level log to a log box

      • the log reports 'debug' and is shown wherever the module reaches 'debug', which is the last level, so a box at any level can hold one

      Parameters

      • Optionalmessage: unknown
      • ...props: unknown[]

      Returns void

    • closes an opened log box and imitates the behavior of LogMethods.log

      • it takes the level of the opening log and accepts none of its own, so a box and its close are always either both shown or both hidden

      Parameters

      • Optionalmessage: unknown
      • ...props: unknown[]

      Returns void

    • assigns an error log to a log box and imitates the behavior of LogMethods.error

      Parameters

      Returns void

    • a direct shortcut for Loxer.of(...).error(new NamedError(name, message)) - see LogMethods.namedError

      Parameters

      • name: string
      • message: string
      • ...props: unknown[]

      Returns void