Constructors
constructor
- new Logger(source: string): Logger
Properties
Private _source
_source: string
Methods
Private _log
- _log(fn: function, level: number, objects: any[]): void
-
Parameters
-
fn: function
-
level: number
-
objects: any[]
Returns void
debug
- debug(...objects: any[]): void
error
- error(...objects: any[]): void
info
- info(...objects: any[]): void
warn
- warn(...objects: any[]): void
Static setLevel
- setLevel(name: keyof LogLevels): number
-
Parameters
Returns number
Creates an instance of Logger.