Class Logger

Versatile DOM/console logger with custom colors and styling

Constructors

  • For CLI colorizing requires colorts module

    Parameters

    • Optional color_ts: any

      colorts.default

    Returns Logger

Properties

can_colorize: boolean
css_critical: string = "font-size: 25px; color: red; font-weight: bold"
css_debug: string = "font-size: 12px; color: #999"
css_error: string = "font-size: 16px; color: red; font-weight: bold"
css_info: string = "font-size: 12px"
css_warning: string = "font-size: 14px; color: orange; font-weight: bold"

Methods

  • Outputs critical message(s)

    Parameters

    • Rest ...msgs: any[]

      messages/objects to output

    Returns void

  • Outputs debug message(s)

    Parameters

    • Rest ...msgs: any[]

      messages/objects to output

    Returns void

  • Outputs error message(s)

    Parameters

    • Rest ...msgs: any[]

      messages/objects to output

    Returns void

  • Outputs info message(s)

    Parameters

    • Rest ...msgs: any[]

      messages/objects to output

    Returns void

  • Tests the logger

    Returns void

  • Outputs warning message(s)

    Parameters

    • Rest ...msgs: any[]

      messages/objects to output

    Returns void

Generated using TypeDoc