Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HMSLogger

Index

Constructors

constructor

  • new HMSLogger(params?: { error: boolean; verbose: boolean; warning: boolean }): HMSLogger
  • Parameters

    • Optional params: { error: boolean; verbose: boolean; warning: boolean }
      • error: boolean
      • verbose: boolean
      • warning: boolean

    Returns HMSLogger

Properties

Private _error

_error: boolean = false

Private _verbose

_verbose: boolean = false

Private _warning

_warning: boolean = false

Private logs

logs: { data: any; id: string; message: string; type: "verbose" | "warn" | "error" }[] = []

Private Optional onLog

onLog: Function

Methods

error

  • error(message: string, data: any): void

getLogs

  • getLogs(): { data: any; id: string; message: string; type: "verbose" | "warn" | "error" }[]
  • Returns { data: any; id: string; message: string; type: "verbose" | "warn" | "error" }[]

setLogListener

  • setLogListener(callback: Function): void

updateLogLevel

  • updateLogLevel(level: HMSLogLevel, value: boolean): void

verbose

  • verbose(message: string, data: any): void

warn

  • warn(message: string, data: any): void

Generated using TypeDoc