<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 12:16 PM, Qiming Teng <span dir="ltr"><<a href="mailto:tengqim@linux.vnet.ibm.com" target="_blank">tengqim@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
In the oslo_log 0.1.0 release, the setup() function demands for a conf<br>
parameter, but I have failed to find any hint about setting this up.<br>
<br>
The problem is cfg.CONF() returns None, so the following code fails:<br>
<br>
  conf = cfg.CONF(name='prog', project='project')<br>
  # conf is always None here, so the following call fails<br>
  log.setup(conf, 'project')<br>
<br>
Another attempt also failed, because it cannot find any options:<br>
<br>
  log.setup(cfg.CONF, 'project')<br>
<br>
Any hint or sample code to setup logging if I'm abandoning the log<br>
module from oslo.incubator?<br>
<br></blockquote><div><br></div><div>You might take a look at <a href="https://github.com/openstack/oslo.log/blob/master/oslo_log/_options.py">https://github.com/openstack/oslo.log/blob/master/oslo_log/_options.py</a></div><div>Those options are what oslo_log expects to find in service configuration files.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thanks!<br>
<br>
Regards,<br>
  Qiming<br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Kind regards,</div><div class="gmail_extra">Denis M.</div><div class="gmail_extra"><br></div></div>