Class ConsoleLogger
Hierarchy
- ConsoleLogger
Constructors
Properties
Methods
Constructors
-
Parameters
-
output: WorkerOutput
-
Default value level: WorkerLogLevel = undefined
-
Default value format: string = ConsoleLogger.defaultFormat
Returns ConsoleLogger
-
Properties
Methods
-
Display a message to the console
Parameters
-
msg: WorkerMessage
-
Default value format: string = ConsoleLogger.defaultFormat
Returns void
-
-
Format a log based on format string
Parameters
-
msg: WorkerMessage
-
Default value format: string = ConsoleLogger.defaultFormat
Returns any
-
-
Parameters
-
level: WorkerLogLevel
to get color from
Returns function
-
-
Parameters
-
s: string
Returns string
-
-
-
-
Commonly handle a message
Parameters
-
msg: WorkerMessage
-
level: WorkerLogLevel
-
Default value format: string = ConsoleLogger.defaultFormat
Returns void
-
Generated using TypeDoc
ConsoleLogger