Write logs Logger

Implements

Constructors

  • Parameters

    • name: string

      Name of the logger

    • Optional level: string

    Returns ConsoleLogger

Properties

level: string
name: string
BIND_ALL_LOG_LEVELS: boolean
LOG_LEVEL: null | string

Methods

  • Write log

    Parameters

    • type: string

      log type, default INFO

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Parameters

    • n: number

    Returns string

  • Returns string

  • Parameters

    • Optional config: object

    Returns undefined | object

  • Write DEBUG log

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Write ERROR log

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Write INFO log

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Write General log. Default to INFO

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Write VERBOSE log

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger

  • Write WARN log

    Parameters

    • Rest ...msg: any

      Logging message or object

    Returns void

    Method

    Memeberof

    Logger