Daemon and logging - the best approach?

Lech Karol Pawłaszek i at tak.znajdziesz
Fri Nov 7 14:19:23 EST 2008


J Kenneth King wrote:
[...]
> Depends.
> 
> For *NIX systems, it's a good idea to use the syslog daemon for logging
> where it's available.

True, however it's more convenient to have certain application logs in
its own place sometimes.

> I believe the logging module can be configured to log to the local
> syslog daemon.

Sure it can. I want to log to files though. Or at least I want to make
it configurable so one can choose a) log to files b) log via syslog.

I've found delay parameter for FileHandler, however it's only in 2.6 at
the moment and I need 2.5 and I am not so sure if it helps here. Tough life.

Kind regards,

-- 
Lech Karol Pawłaszek <ike>
"You will never see me fall from grace" [KoRn]



More information about the Python-list mailing list