Options
All
  • Public
  • Public/Protected
  • All
Menu

Write logs

class

Logger

Hierarchy

  • ConsoleLogger

Implements

Index

Constructors

constructor

Properties

level

level: string

name

name: string

Static LOG_LEVEL

LOG_LEVEL: any = null

Methods

_log

  • _log(type: string, ...msg: any[]): void
  • Write log

    method
    memeberof

    Logger

    Parameters

    • type: string

      log type, default INFO

    • Rest ...msg: any[]

      Logging message or object

    Returns void

_padding

  • _padding(n: any): string

_ts

  • _ts(): string

debug

  • debug(...msg: any[]): void

error

  • error(...msg: any[]): void

info

  • info(...msg: any[]): void

log

  • log(...msg: any[]): void

verbose

  • verbose(...msg: any[]): void

warn

  • warn(...msg: any[]): void