On Mon, 24 Feb 2003, Jason R. Mastaler wrote:
> 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
Perhaps our two suggestions could be the beginning of a
FAQ/documentation entry on log rotation? I can see both methods being
interesting to folks.
Mark
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users