A simplistic logger that logs to the frontend console any logs that are above the configured log level.

Implements

Constructors

Properties

opts: Required<FrontendLoggerOpts>

Methods

  • Log a debug message to the console

    Parameters

    • meta: unknown
    • Rest ...param: unknown[]

    Returns void

  • Log an error message to the console

    Parameters

    • meta: unknown
    • Rest ...param: unknown[]

    Returns void

  • Format a log message for the console

    Parameters

    • meta: unknown
    • param: unknown[]
    • level: LogLevel

    Returns [string, ...unknown[]]

  • Log a info message to the console

    Parameters

    • meta: unknown
    • Rest ...param: unknown[]

    Returns void

  • Return true if the given level is the same or higher than the configured log level

    Parameters

    • level: string

    Returns boolean

  • Log a warning message to the console

    Parameters

    • meta: unknown
    • Rest ...param: unknown[]

    Returns void

Generated using TypeDoc