Logging functions
The Aruba Network Analytics Engine provides the predefined
logger
functions for sending messages to the log and to set logging levels.
logger.setLevel(<level>)
Sets the default logging level specified by
<level>
. Valid values for
<level>
are the following:
EMERG
ALERT
CRITICAL
ERROR
WARNING
NOTICE
INFO
DEBUG
logger.log("<message>")
Sends the specified
<message>
at the default log level to the system log.
To send a message at a log level that is not the default log level, you can use one of the following functions:
logger.emerg("<message>")
logger.alert("<message>")
logger.critical("<message>")
logger.error("<message>")
logger.warning("<message>")
logger.notice("<message>")
logger.info("<message>")
logger.debug("<message>")