Mark Stosberg <[EMAIL PROTECTED]> writes:
> I recently looked into a solution for rotating my TMDA logs. Here's
> a solution that seems to be working well on FreeBSD 4.5. It appears
> that on Linux you could do something similiar with the "logrotate"
> program.
I just have the following in my .tmda/config to write new logfiles
every month:
import os, time
homedir = os.path.expanduser("~")
YYYYmm = time.strftime("%Y-%m") # 2001-04
LOGFILE_DEBUG = os.path.join(homedir, "log/tmda", "debug." + YYYYmm)
LOGFILE_INCOMING = os.path.join(homedir, "log/tmda", "incoming." + YYYYmm)
The end result looks like this:
-rw------- 1 jason wheel 1101449 Dec 31 23:58 incoming.2002-12
-rw------- 1 jason wheel 1394177 Jan 31 22:51 incoming.2003-01
-rw------- 1 jason wheel 1172741 Feb 24 13:47 incoming.2003-02
Season to taste.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users