Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18860
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Two questions about logging |
| Date | 2012-01-11 21:34 -0500 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-496943.21342211012012@news.panix.com> (permalink) |
| References | <7dabf43f-3814-47b6-966a-1439f56548b5@i6g2000vbk.googlegroups.com> |
In article <7dabf43f-3814-47b6-966a-1439f56548b5@i6g2000vbk.googlegroups.com>, Matthew Pounsett <matt.pounsett@gmail.com> wrote: > First, I'd like to be able to permit users to do more typical log > rotation, based on their OS's log rotation handler, rather than > rotating logs from inside an application. This is usually handled by > signalling an application with a HUP, whereupon it closes and then re- > opens all of its logs, getting new file handles (and new inodes). I > don't see anything in the Handler methods (or anywhere else) that > would let me tell a logger object to refresh the file handles on a log > file. Is there some standard way to deal with this? What I would do is log to syslog (logging.handlers.SysLogHandler) and let syslog worry about rotating log files. Why reinvent the wheel?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Two questions about logging Matthew Pounsett <matt.pounsett@gmail.com> - 2012-01-11 18:19 -0800
Re: Two questions about logging Roy Smith <roy@panix.com> - 2012-01-11 21:34 -0500
Re: Two questions about logging Matthew Pounsett <matt.pounsett@gmail.com> - 2012-01-11 19:31 -0800
Re: Two questions about logging Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-01-12 11:28 +0100
Re: Two questions about logging K Richard Pixley <rich@noir.com> - 2012-01-12 17:03 -0800
Re: Two questions about logging Matthew Pounsett <matt.pounsett@gmail.com> - 2012-01-14 18:03 -0800
Re: Two questions about logging Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2012-01-15 17:03 -0800
csiph-web