Rule: Log message
Use the Log Message rule to print a log to the browser console.

warning
Excessively printing logs in the browser console can degrade performance.
Message
The content of the log message. Use the Expression editor
button to configure it.
Log level
You can select three log level options:
- Info - displays the message in blue, with an info icon. This is the default option.
- Trace - displays the message in black, with a trace icon.
- Error - displays the message in red, with an error icon.
When previewing an app, logging is enabled and set to the Info level by default.
When running a deployed app, logging is disabled by default.
Modifying log levels at runtime
You can modify the log level when running an app as follows:
- After launching the app, open the developer tools in your browser.
- Select Console.
- Type the following in the console:
sessionStorage.setItem("apps.runtime.loglevel", "trace")to set the runtime log level to Trace. This setting prints all logs to the console.sessionStorage.setItem("apps.runtime.loglevel", "info")to set the runtime log level to Info. This setting prints only Info and Error messages.