You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/01 10:38:49 UTC
[Spamassassin Wiki] Update of "SeparateLogFile" by RajaMustaq
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.
The following page has been changed by RajaMustaq:
http://wiki.apache.org/spamassassin/SeparateLogFile
------------------------------------------------------------------------------
local5.*; /var/log/spamassassin
}}}
+ This is the same kind of configuration with syslog-ng which mostly part of the modern systems, separate mail logs from other:
+
+ {{{
+ destination mail { file("/var/log/mail"); };
+ destination messages { file("/var/log/messages"); };
+
+ filter f_mail { facility(mail, news) and not match (imapd); };
+ filter f_messages { level(info..warn) and not facility(mail, news); };
+
+ log { source(src); filter(f_mail); destination(mail); };
+ log { source(src); filter(f_messages); destination(messages); };
+ }}}
+
+
Once you understand how to use syslog properly, you won't have problems
like this. After all... syslog IS a pervasive element of unix.You can't
avoid it forever. It's better to learn how to use it, rather than trying to
figure out how to go around it all the time on a per-program basis.
-
-