Constructors
constructor
- new SoloLogger(logLevel?: string, devMode?: boolean): SoloLogger
Parameters
Optional
logLevel: stringOptional
devMode: boolean
Methods
debug
- debug(msg: any, ...args: any): void
Returns void
error
- error(msg: any, ...args: any): void
Returns void
info
- info(msg: any, ...args: any): void
Returns void
nextTraceId
- nextTraceId(): void
Returns void
prepMeta
- prepMeta(meta?: any): any
Returns any
setDevMode
- setDevMode(devMode: boolean): void
Returns void
setLevel
- setLevel(level: string): void
Returns void
showJSON
- showJSON(title: string, obj: object): void
Returns void
showList
- showList(title: string, items?: string[]): boolean
Parameters
- title: string
- items: string[] = []
Returns boolean
showUser
- showUser(msg: any, ...args: any): void
Returns void
showUserError
- showUserError(err: any): void
Returns void
warn
- warn(msg: any, ...args: any): void
Returns void
the log level to use