Constructors
constructor
-
Parameters
-
Default value options: {} = {}
Accessors
stderr
-
Returns any
stdout
-
Returns any
Methods
_log
-
Parameters
Returns void
_logAsync
- _logAsync(logObj: any): Promise<[any, any, any, any, any, any, any, any, any, any]>
-
Parameters
Returns Promise<[any, any, any, any, any, any, any, any, any, any]>
_logFn
- _logFn(defaults: any, args: any): false | Promise<boolean>
-
Parameters
Returns false | Promise<boolean>
_restoreStream
- _restoreStream(stream: any): void
-
Parameters
Returns void
_wrapLogFn
- _wrapLogFn(defaults: any): any
-
Parameters
Returns any
_wrapStream
- _wrapStream(stream: any, type: any): void
-
Parameters
Returns void
addReporter
- addReporter(reporter: any): this
-
Parameters
Returns this
create
-
Parameters
mockTypes
- mockTypes(mockFn: any): void
-
Parameters
Returns void
pauseLogs
-
Returns void
removeReporter
- removeReporter(reporter: any): any
-
Parameters
Returns any
restoreAll
-
Returns void
restoreConsole
-
Returns void
restoreStd
-
Returns void
resumeLogs
-
Returns void
setReporters
- setReporters(reporters: any): this
-
Parameters
Returns this
withDefaults
- withDefaults(defaults: any): Consola
-
Parameters
withTag
-
Parameters
wrapAll
-
Returns void
wrapConsole
-
Returns void
wrapStd
-
Returns void