Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Logger

Hierarchy

  • Logger

Index

Methods

attachError

  • attachError(error: Error): this

debug

  • debug(message: string, metadata?: any): void
  • Parameters

    • message: string
    • Optional metadata: any

    Returns void

error

  • error(message: string, metadata?: any): void
  • Parameters

    • message: string
    • Optional metadata: any

    Returns void

forBot

  • forBot(botId: string): this

info

  • info(message: string, metadata?: any): void
  • Parameters

    • message: string
    • Optional metadata: any

    Returns void

level

  • Parameters

    Returns this

  • Sets the level that will be required at runtime to display the next message. 0 = Info / Error (default) 1 = Warning 2 = Debug 3 = Silly

    Parameters

    • level: LogLevel

      The level to apply for the next message

    Returns this

persist

  • persist(shouldPersist: boolean): this

warn

  • warn(message: string, metadata?: any): void
  • Parameters

    • message: string
    • Optional metadata: any

    Returns void

Generated using TypeDoc