5.9 Logging

F-Prot Antivirus looks for the variable FPROT_LOGLEVEL in /etc/f-prot.conf to determine the amount of information to write to the system logs. The legal FPROT_LOGLEVEL values correspond to the kernel syslog()'s loglevels, and are passed as-is to the system logger.

As with any other system log messages, all of F-Prot log messages marked with lower or equal loglevel then FPROT_LOGLEVEL will be put in the system logs, while messages marked with a higher level are discarded. This applies to all relevant F-Prot components, i.e. those that write to system logs (f-protd, f-prot-qmail, f-prot-milter, f-prot.so).

The default loglevel is 4, which logs all warnings and errors, but the system administrator can increase or decrease the loglevel if he/she so wishes by changing the value of the FPROT_LOGLEVEL variable.

The valid loglevels are listed below:

FPROT_LOGLEVEL Semantic name Description
0 LOG_EMERG Fatal condition
1 LOG_ALERT Action must be taken immediately
2 LOG_CRIT Critical conditions
3 LOG_ERR Error conditions
4 LOG_WARNING Warning conditions
5 LOG_NOTICE Normal, but significant, condition
6 LOG_INFO Informational message
7 LOG_DEBUG Debugging information

By default, f-protd and f-prot.so log to the 'daemon' facility and the mail server plugins log to the 'mail' facility. By changing the FPROT_LOGFACILITY variable in /etc/f-prot.conf you can direct the logs from f-protd and f-prot.so to another facility. See the syslog man pages (sections 3 and 7) for your system and /etc/f-prot.conf for details.

Back to Index Next