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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ted Cooper
Dátum:  
Címzett: exim-users
Tárgy: 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?


see
http://docs.exim.org/current/spec_html/ch49.html#SECTwhelogwri


Next version of exim will have an option to use %M instead of %D (see
bug item http://bugs.exim.org/show_bug.cgi?id=486).


OR

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
http://www.exim.org/docs.html
http://docs.exim.org/current/