← Back to team overview

credativ team mailing list archive

Re: [Merge] lp:~credativ/openobject-server/7.0-fixes-syslog into lp:openobject-server

 

I've now looked into what needs doing to use logging.config and see two ways it can be integrated:
1. Use a logging configuration file, but load it with disable_existing_loggers=False, to preserve the existing configuration.
2. same as 1. but use the serverrc as the configuration file (loaded only when the "loggers", "handlers" and "formatters" sections are present)

Unless I missed something, the latter, while appealing, might be hard to achieve. There seems to be no API in logging.config to retrieve the running configuration back. The misc dictionary in the openerp.tools.config module might hold enough information to recreate it, though.

Which one seems more acceptable? Would you be OK with an extra configuration file if maintaining the information in the serverrc proved impossible?

(There is the assumption that you wanted to keep the (then obsolete) style of configuration for a while, before completely getting rid of it)
-- 
https://code.launchpad.net/~credativ/openobject-server/7.0-fixes-syslog/+merge/167023
Your team credativ is subscribed to branch lp:~credativ/openobject-server/7.0-fixes-syslog.


References