|Table of Contents|
logger class lets you add custom messages to the application log, in addition to the ones generated automatically by Arrow Cloud
logcatcommands. When running your application locally (via the
appc cloud runcommand, they are displayed in the local console.
In productions, you may want to minimize output logs to improve application performance and reduce memory consumption.
First, require the
When running your application locally via the
acs run command log messages are displayed in the console.
Specifying Application Log Level
To set the log level, you call
logger.setLevel() and pass it one of the following log level strings, in ascending order of log detail:
The default log level is
"DEBUG", if not specified.
To log a message, call one of the following methods, passing it the string to output. The logging level must be set to an appropriate level.