Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Hierarchy

  • Logger

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Logger(token: string): Logger

Properties

Private client

client: APIClient

Methods

error

  • error(message: string): Promise<any>
  • Sends an "error" log

    Parameters

    • message: string

    Returns Promise<any>

info

  • info(message: string): Promise<any>
  • Sends an "info" log

    Parameters

    • message: string

    Returns Promise<any>

log

  • log(message: string): Promise<any>
  • Sends an "log" log

    Parameters

    • message: string

    Returns Promise<any>

Private send

  • send(log: Log): Promise<any>
  • Accepts a Log and sends it to LE

    Parameters

    Returns Promise<any>

warning

  • warning(message: string): Promise<any>
  • Sends an "warning" log

    Parameters

    • message: string

    Returns Promise<any>

Generated using TypeDoc