Log level customization
Smart Polling logs self-diagnostic information about its operations and activities during execution.
When Smart Polling logs self-diagnostic information, the logs are collected in these
files:
- /data/log/n2os/n2ossp.log
- /data/log/n2os/n2os_strategist.log
To change the level of detail in the logs, you can run this command in the
command-line interface (CLI):
conf.user configure sp log_level <LEVEL>where
<LEVEL> is one of the following values (in increasing order of
verbosity):FATALERRORWARNINFODEBUG
Note:
The default value is
INFO.Note:
The values are ordered from the most to the least important,
and the configured level is the minimum to be printed. For example:
ERRORwill print log lines for bothERRORandFATALmessagesFATALwill print log lines only forFATALmessages
After you have changed and saved the file, you can restart Smart Polling with the
command:
service n2ossp stopNote:
The service automatically restarts after the execution of this
command.
To configure the file to see only
ERROR and FATAL
messages, in the /data/cfg/n2os.conf.user file, you can add this
rule:sp log_level ERRORthen restart
the process with the
command:service n2ossp stop