Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Modifiers<Delete>

Type parameters

  • Delete: string

Hierarchy

  • Modifiers

Methods

h

highlight

  •     Loxer.highlight().log(...)
        Loxer.highlight().open(...)
        Loxer.highlight().of(...)
        Loxer.highlight().error(...)
    

    Highlights logs to make them more visible.

    • by default the foregroundColor and backgroundColor of the log will be inverted.
    • a different highlight color can be set at LoxerConfig.highlightColor in the LoxerOptions.config declared in Loxer.init(options)
    • the parameter doit?: boolean can conditionally highlight the log with true
    • this function can be chained with any other chaining function like .level(...) or .module(...)
    • highlighting error logs does not color the message differently but append the stack to the default console output

    Parameters

    • Optional doit: boolean

      should the log be highlighted

    Returns LogMethods & Omit<Modifiers<Delete | h>, Delete | h>

l

level

  •     Loxer.level(number).log(...)
        Loxer.level(number).open(...)
        Loxer.level(number).of(...)
    

    Sets levels to logs to automatically disable them with levels for Loxer / Modules.

    • if you don't chain this function, the default level is 1 (high) for opening logs and the level of the opening log for any Loxer.of(...) log.
    • levels can be activated for different modules at options.modules.*level in the Loxer.init(options)
    • levels on errors (and Loxer.of(...).error(...)) will be ignored, but added as an attribute for the output TODO: is this necessary?:
    • levels on Loxer.of(...).add(...) will be changed to the minimum level of the opening log, though the box to append to might not be logged.
    • levels on Loxer.of(...).close(...) will be strictly changed to the level of the opening log, though otherwise not opened boxes could be closed, or opened boxes could not be closed.
    • this function can be chained with any other chaining function like .highlight(...) or .module(...)

    Parameters

    Returns LogMethods & Omit<Modifiers<Delete | l>, Delete | l>

m

module

Generated using TypeDoc