Interface Logging

Represents a logging device which can be used directly as a function (for INFO logging) but also has dedicated logging functions for respective logging levels.

interface Logging {
    prefix: string;
    debug(message: string, ...parameters: any[]): void;
    error(message: string, ...parameters: any[]): void;
    info(message: string, ...parameters: any[]): void;
    log(level: LogLevel, message: string, ...parameters: any[]): void;
    success(message: string, ...parameters: any[]): void;
    warn(message: string, ...parameters: any[]): void;
    (message: string, ...parameters: any[]): void;
}
  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

Properties

Methods

Properties

prefix: string

Methods

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • level: LogLevel
    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void