|
From: Rob M. <rob...@gm...> - 2006-07-10 23:25:43
|
[ Please don't CC me on list traffic ]
On 7/10/06, Stephen Allen <fet...@ro...> wrote:
> Rob MacGregor wrote:
> > Have you considered using syslog instead of logfile?
>
> That would be a good idea if you could control more of what gets logged
> there. At the moment, my fetchmail daemon runs every 180 seconds and
> checks email from half-a-dozen POP3 servers. Most of it's log is filled
> with:
>
> fetchmail: sleeping at Mon 10 Jul 2006 20:25:26 BST
> fetchmail: awakened at Mon 10 Jul 2006 20:28:26 BST
<---SNIP--->
> However, I *do* want to see messages like:
>
> fetchmail: 1 message for us...@do... at POP3-1 (2353 octets).
> fetchmail: reading message us...@do...@pop.isp.com:1 of 1 (2353
> octets) fetchmail: flushed
>
> As far as I know at the moment, it's all or nothing.
For what you're after, yes. I'll admit that I only see log entries
from fetchmail when things go wrong. Everything else would only be
duplicating what my MTA logs anyway...
However, if you run syslog-ng you could easily weed out the messages
you don't want. I've done that on a number of systems, using the
pattern matching to avoid logging pointless stuff. Probably easier
than patching fetchmail, and arguing over what messages should go at
what verbosity level :)
--
Please keep list traffic on the list.
Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche
|