F-Prot Antivirus looks for the environment variable FPROT_LOGLEVEL 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 environment variable, e.g.:ð>
# Example to make f-protd more verbose. Assumes the bash shell.
root@computer> export FPROT_LOGLEVEL=6
root@computer> /usr/local/f-prot/f-protd -background /usr/local/f-prot
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 |