addLogsFromConfigFile(fname,
configDefaults=None)
| source code
|
Add new loggers, handlers, and fomatters from a file. Returns whether
the file successfully loaded.
The file should be in the standard Python log config format described
here:
http://docs.python.org/library/logging.config.html#configuration-file-format
This code was copied from the Python 2.7 logging.config.fileConfig()
method, then altered to not require root or wipe existing loggers.
Unfortunately the standard option
"disable_existing_loggers=False" would still wipe out their
settings and replace root, undoing Zope's log config.
|