Accessors
category
- get category(): string
Returns string
Children
- get Children(): Map<string, Logger>
Returns Map<string, Logger>
Config
- get Config(): Record<string, any>
Returns Record<string, any>
- set Config(value): void
Parameters
- value: Record<string, any>
Returns void
id
- get id(): string
Returns string
Logs
- get Logs(): Log[]
Returns Log[]
timestamp
- get timestamp(): number
Returns number
Methods
debug
- debug(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
error
- error(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
fatal
- fatal(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
info
- info(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
setHandler
- setHandler(handler): void
Returns void
setLevel
- setLevel(level): void
Returns void
timeEnd
- timeEnd(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
timeStart
- timeStart(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
trace
- trace(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
warn
- warn(message?, ...args): void
Parameters
- message: string = ''
Rest
...args: any[]
Returns void
Static
createLogger
- createLogger(category, level, id, isParent, config?): Logger
Parameters
- category: string
- level: LOG_LEVEL_VALUES
- id: string
- isParent: boolean
Optional
config: Record<string, any>