Re: [exim] Datestamp in filter log's filename?

Top Page

Reply to this message
Author: Ted Cooper
To: exim-users
Subject: Re: [exim] Datestamp in filter log's filename?
Adam Funk wrote:
> I've been looking at the Exim filter spec (sec.3.15, "Logging
> commands") and I'd like to include the year and week number in the log
> filename: something like this
>    logfile $home/filter.${some.string.expansion}.log

> which would then write the log output in "~/filter.2009w14.log" this
> week, "~/filter.2009w15.log" next week, etc.
> Is this possible?


Next version of exim will have an option to use %M instead of %D (see
bug item


Just rotate the logs at the end of the day into whatever filename you
want - I keep mine in yyyy/ww/d.[main|reject]

The Exim Manual