The Log class is an Itential Platform class used to output errors, warnings, and other information to the console or the Itential Platform log files.
Itential Platform instantiates the Log class on startup and exposes it as the global log object. Applications and adapters may reference it directly.
Log levels control the amount of information recorded. Each level has an associated severity. The following levels are available:
console.log is not supported by Itential Platform. Use the Log class instead.
Log levels are defined in the loggerProps object of the Itential Platform Profile, configurable within the Admin Essentials application.
log_level property determines the level for the log file.console_level property determines the level for the console.log_level is set to info, which means any logging at info severity or higher will be written to the log file (info, warn, error, debug, console, trace).log_level were debug, Itential Platform would log all log.debug messages from cogs and adapters.The following is an example of the loggerProps object in an Itential Platform Profile: