Re: Proposal: Logging system rewrite
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On 04/01/05 06:29, Wari Wahab wrote: > On 01-Apr-05, at PM 12:19, Bill Mill wrote: >> >> Question: how do you properly handle the event where the user doesn't >> have a logfile specified in config.py or the specified file doesn't >> exist/can't be written to? Intuitively, I would say discard all log >> messages - but how does a user figure out that they have the security >> wrong on a log file, or that they've misspelled the name? Maybe it >> just shouldn't initialize with a bad value? >> > Log to stderr. The standard nix way of doing things. Bonus prize: > things from stderr does end up in the webserver logs. > > I think this would be a good fallback solution. One could also check for the existence of the log_file and log_level variables in 'test-installation'. ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/Info/Sentarus/hamr30