Logging levels

There are two levels of log:

The WriteLog value in the kave.ini file specifies the logging level. At the moment, the level can be 0 (logging off), 1 (informational logging on), and 9 (debug logging on).

SDK user sets the mode in which, logging is redirected to the system log (only for UNIX OS), while logging of is carried out according to the current level of detail.

Log level settings applies after 5 seconds after the user saved the kave.ini file with the new value of the parameter of detail logging and created a configuration file, specifying the level of detail logging option.

When syslog logging mode is turned on (that is the Syslog option of the kave.ini is set to 1, see section "Configuration file"), the following takes place in logging procedure. Scanning statuses are logged with LOG_NOTICE priority code as important but normal events; critical errors, which typically indicate that further operation of the SDK is not possible, are output with LOG_CRIT code. These types of messages are output to syslog when working with informational logging level. All other messages are logged with LOG_DEBUG priority code and output only when debug logging level is specified.

In some versions of syslog, such as rsyslog, saving of messages marked with LOG_DEBUG code may be turned off by default. Please make sure your syslog is properly configured for KAV SDK to output debug tracing. Fail to do so results in KAV SDK being unable to output debug information to syslog even with debug logging level (value 9) specified in kave.ini.

In this section

Informational logging level

Debug logging level

Page top