Class: PrettyConsoleLogger
A logger that logs to the console with pretty colors.
Extends
Constructors
new PrettyConsoleLogger()
new PrettyConsoleLogger(
infoEnabled
:boolean
,debugEnabled
:boolean
):PrettyConsoleLogger
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
infoEnabled | boolean | true | Whether info logging is enabled. |
debugEnabled | boolean | false | Whether debug logging is enabled. |
Returns
Inherited from
Defined in
packages/verse-core/src/utils/logging.ts:92
Properties
debugEnabled
readonly
debugEnabled:boolean
=false
Whether debug logging is enabled.
Inherited from
Defined in
packages/verse-core/src/utils/logging.ts:94
infoEnabled
readonly
infoEnabled:boolean
=true
Whether info logging is enabled.
Inherited from
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
Inherited from
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
Overrides
Defined in
packages/verse-core/src/utils/logging.ts:124
sql()
sql(
sql
:string
):void
Logs the given SQL query.
Parameters
Parameter | Type | Description |
---|---|---|
sql | string | The SQL query to be logged. |
Returns
void
Overrides
Defined in
packages/verse-core/src/utils/logging.ts:132
warn()
warn(
message
:any
):void
Logs the given message at the warn level.
Parameters
Parameter | Type | Description |
---|---|---|
message | any | The message to be logged. |
Returns
void