-
Notifications
You must be signed in to change notification settings - Fork 12
Console.LogLevel
boxgaming edited this page Sep 25, 2023
·
4 revisions
Gets or sets the current console log level.
logLevel& = Console.LogLevel
Console.LogLevel logLevel&
The following log levels can be set with this method:
NONE, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL
Calls to Console.Log of equal or greater severity will be written to the console output. For example, if the log level is set to WARN, all messages logged at WARN, ERROR and FATAL will be displayed in the console while INFO, DEBUG and TRACE messages will be ignored.
Example 1: Set the log level to DEBUG.
Import Console From "lib/web/console.bas"
Console.LogLevel Console.DEBUG
Console.Log "This is an info message.", Console.INFO
Console.Log "This is a trace message, it will be ignored.", Console.TRACE