Class: ConsoleLogger
A logger that logs to the console.
Extended by
Implements
Constructors
new ConsoleLogger()
new ConsoleLogger(
infoEnabled
:boolean
,debugEnabled
:boolean
):ConsoleLogger
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
infoEnabled | boolean | true | Whether info logging is enabled. |
debugEnabled | boolean | false | Whether debug logging is enabled. |
Returns
Defined in
packages/verse-core/src/utils/logging.ts:92
Properties
debugEnabled
readonly
debugEnabled:boolean
=false
Whether debug logging is enabled.
Implementation of
Defined in
packages/verse-core/src/utils/logging.ts:94
infoEnabled
readonly
infoEnabled:boolean
=true
Whether info logging is enabled.
Implementation of
Defined in
packages/verse-core/src/utils/logging.ts:93
Methods
debug()
debug(
message
:any
):void
Logs the given message at the debug level.
Parameters
Parameter | Type | Description |
---|---|---|
message | any | The message to be logged. |
Returns
void
Implementation of
Defined in
packages/verse-core/src/utils/logging.ts:109
info()
info(
message
:any
):void
Logs the given message at the info level.
Parameters
Parameter | Type | Description |
---|---|---|
message | any | The message to be logged. |
Returns
void