Re: [Tutor] redirecting output to logfile and logrotate

2005-07-24 Thread Michael Janssen
On 7/23/05, Winfried Tilanus <[EMAIL PROTECTED]> wrote: > Somebody else suggested (in private) to make logrotate send a -HUP this was me. Sorry for that, I'm still unfamilar with gmail. Danny's suggestion using RotatingFileHandler is better than mine, cause it uses a standard module. I suggest

Re: [Tutor] redirecting output to logfile and logrotate

2005-07-23 Thread Winfried Tilanus
On Fri, 22 Jul 2005 11:46:09 -0700 (PDT), Danny Yoo wrote: Thanks Danny, (snip) >So if it's possible, I'd recommend using the RotatingFileHandler logger >from Python's 'logging' Standard Library module instead of 'logrotate'. That is the way I will go, the library (although not standard in Pyth

Re: [Tutor] redirecting output to logfile and logrotate

2005-07-22 Thread Danny Yoo
On Fri, 22 Jul 2005, Winfried Tilanus wrote: > I am installing a server-like python program that opens a logfile in the > following way: > > # redirect output for logging to file > applog = open(config.log, 'a', 1) > sys.stdout = applog > sys.stderr = sys.stdout > > Througout the

[Tutor] redirecting output to logfile and logrotate

2005-07-22 Thread Winfried Tilanus
Hi, I am installing a server-like python program that opens a logfile in the following way: # redirect output for logging to file applog = open(config.log, 'a', 1) sys.stdout = applog sys.stderr = sys.stdout Througout the program are lines like: print '[', time.ascti