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

Top Page
Delete this message
Reply to this message
Author: Odhiambo Washington
Date:  
To: Adam Funk
CC: exim-users
Subject: Re: [exim] Datestamp in filter log's filename?
On Tue, Mar 31, 2009 at 3:12 PM, Adam Funk <a24061@???> 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?



Yes, it is.

man date

I have the following in my main configuration file:

log_file_path                 = /var/log/exim/%s.%D.log


After "man date" you sure can come out with something that does what you
want.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"The only time a woman really succeeds in changing a man is when he is a
baby."
                             - Natalie Wood