[openstack-dev] oslo_log/oslo_config initialization
dmakogon at mirantis.com
Wed Jan 21 10:27:15 UTC 2015
On Wed, Jan 21, 2015 at 12:16 PM, Qiming Teng <tengqim at linux.vnet.ibm.com>
> In the oslo_log 0.1.0 release, the setup() function demands for a conf
> parameter, but I have failed to find any hint about setting this up.
> The problem is cfg.CONF() returns None, so the following code fails:
> conf = cfg.CONF(name='prog', project='project')
> # conf is always None here, so the following call fails
> log.setup(conf, 'project')
> Another attempt also failed, because it cannot find any options:
> log.setup(cfg.CONF, 'project')
> Any hint or sample code to setup logging if I'm abandoning the log
> module from oslo.incubator?
You might take a look at
Those options are what oslo_log expects to find in service configuration
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev