Thank you for your answer. I have made some test of redirecting the Syslog channel you specified, but the problem still exists. The "LibClamAV Warning:..." messages are still there at the console.
I tried to look into the code and found that messages are handled by
cli_warnmsg(), cli_errmsg() and cli_dbgmsg() in libclamav/others.c.
It's great there are wrappers to handle the messages, but those wrappers
seem only print the message to the redirected stderr, which may be the
original stderr, LogFile or /dev/console. Errors/warnings are not
sent to Syslog at all.
I tried to write a small patch to fix it so that cli_warnmsg(),
cli_errmsg() and cli_dbgmsg() send messages to Syslog when Syslog is in
use, but I failed. I cannot refer to copt in others.c. Anyone can help
on this? Thank you.
On Mon, 30 May 2005 09:47:00 -0700 (PDT)
"Dennis Peterson" <[EMAIL PROTECTED]> wrote:
> imacat said:
> > Sorry, I have waited 2 days for this question. Did someone notice it?
> > Can someone answer it?
>
>
> If you have clamd.conf configured to log to local7 facility, for example,
> then in your syslog.conf file or what ever it might be on your system, you
> can have an entry like this:
>
> *.err;kern.notice;local7.none /dev/sysmsg
>
> This is classic syslog as used in Solaris. The entry says don't send
> anything from the local7 facility to the console. Syslog-ng allows this as
> well using a slightly different syntax. Check your syslog man pages for
> specifics for your system.
>
> dp
> _______________________________________________
> http://lurker.clamav.net/list/clamav-users.html
--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt
<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug
pgpqoKTLDAzmb.pgp
Description: PGP signature
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
