[Zope-Coders] new zLOG

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 27 Nov 2002 11:42:50 +0000


On Tuesday 26 November 2002 7:40 pm, Chris McDonough wrote:

> I'd rather eventually instruct zLOG itself to ignore the STUPID_LOG_FIL=
E
> envvar for event logging configuration entirely.  Instead, by default,
> make the event logger send log messages to stdout and also buffer them
> in memory until we've done a told it to do otherwise.
>
> Then, after the app using zLOG does a setuid or whatever else it needs
> to accomplish before setting up logging, we can safely configure the
> event logger with "real" handlers using info maybe from a config file,
> then just flush the "startup" log buffer contents to the "real"
> reconfigured log handlers.

You are assuming that logging should not happen before the suid. That hel=
ps=20
avoid one problem with the stupid log file (that is, were the process=20
generating the logging events opens the log file directly), but is a=20
disservice to every other logging backend.=20

A syslog backend doesnt care about suid. A non-stupid log-to-file backed =
wont=20
care about suid. Arguably, it is more important that any events before th=
e=20
suid are logged promptly.

Am I missing something?