Logger

A simple logger class for logging messages to the console.

Remarks

Logger class stores logs into a ./logs folder.

Hierarchy

  • Logger

Properties

Methods

Constructors

Properties

logLevel: LogLevel = LogLevel.INFO
mTime: number = 0

Methods

  • Parameters

    • filename: string
    • Rest ...message: string[]

    Returns void

  • Parameters

    • filename: string
    • Rest ...message: string[]

    Returns void

  • Parameters

    • filename: string
    • Rest ...message: string[]

    Returns void

  • Parameters

    • filename: string
    • Rest ...message: string[]

    Returns void

  • Parameters

    • filename: string
    • Rest ...message: string[]

    Returns void

  • Parameters

    • type: string
    • filename: string
    • Rest ...message: string[]

    Returns void

  • Returns

    The time elapsed since the last call to Logger.start() in milliseconds

    Returns number

Constructors