On Tue, Mar 31, 2009 at 3:12 PM, Adam Funk <[email protected]> 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
-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to