Re: tracking/ordering log files

2007-11-16 Thread nik
OK, that's it, so to do what I want I am using: self.logger = logging.getLogger('debuglog') hdlr = logging.handlers.RotatingFileHandler(debugfilename, 'a', 0, 5) hdlr.doRollover() formatter = logging.Formatter('%(asctime)s % (levelname)s:%(message

Re: tracking/ordering log files

2007-10-23 Thread Gabriel Genellina
En Tue, 23 Oct 2007 17:08:03 -0300, nik <[EMAIL PROTECTED]> escribió: > I think it is called "logfile rotation" and see some links about > log4py, but no description of what that is. See the logging package; in particular, you want a RotatingFileHandler.

Re: tracking/ordering log files

2007-10-23 Thread nik
On Oct 23, 11:46 am, nik <[EMAIL PROTECTED]> wrote: > Hi, > > I heard that there was a utility for keeping files and specifically > log files organized, but haven't been able to find anything but the > logging class. The logging class seems to help create the content of a > log file, but unless I a

tracking/ordering log files

2007-10-23 Thread nik
Hi, I heard that there was a utility for keeping files and specifically log files organized, but haven't been able to find anything but the logging class. The logging class seems to help create the content of a log file, but unless I am missing something, it doesn't keep track of multiple log file