With: <a href="https://review.openstack.org/#change,5528">https://review.openstack.org/#change,5528</a><div><br></div><div>Out of the box:</div><div><br></div><div>1) uncomment log_config in keystone.conf</div><div>2) Run ./bin/keystone-all (with proposed logging configuration, no output will occur on the CLI)</div>
<div>3) ./keystone.log will be produced containing WARNING / ERROR / CRITICAL.</div><div><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 2:03 PM, Adam Gandelman <span dir="ltr"><<a href="mailto:adamg@canonical.com">adamg@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Kevin, Dolph--<br>
<br>
Getting this working out-of-the-box has been a TODO of mine for a
while. I've filed <a href="https://bugs.launchpad.net/keystone/+bug/959610" target="_blank">https://bugs.launchpad.net/keystone/+bug/959610</a>
to track. Adding the example dolph mentioned did not seem to get
any log output generated.<br>
<br>
@Kevin- The logging.conf installed in the current Ubuntu packages is
the logging.conf that was previously shipped in the pre-KSL keystone
branch. The current logging.conf.sample in the source tree seems to
be copied from glance. This is also installed at
/etc/keystone/logging.conf.sample alongside the version we maintain
in packaging.<span class="HOEnZb"><font color="#888888"><br>
<br>
Adam</font></span><div><div class="h5"><br>
<br>
<br>
On 03/18/2012 01:03 PM, Kevin Jackson wrote:
</div></div><blockquote type="cite"><div><div class="h5">Hi,<br>
I have Keystone set up (2012.1~rc1~20120316.2145-0ubuntu1) on
Ubuntu 12.04 B1 and it isn't logging.<br>
Only when stopping the keystone service then running
'keystone-all' in a terminal do I get to see all the debug output.<br>
I've checked permissions (/var/log/keystone and keystone.log are
owned by keystone user/group) and I've tried the packaged
logging.conf.sample (note the ubuntu package ships with this
referencing 'glance') to no avail.<br>
<br>
/etc/keystone/keystone.conf<br>
...<br>
verbose = True<br>
debug = True<br>
log_config = /etc/keystone/logging.conf<br clear="all">
...<br>
<br>
<br>
/etc/keystone/logging.conf<br>
[loggers]<br>
keys=root,keystone,combined<br>
<br>
[formatters]<br>
keys=normal,normal_with_name,debug<br>
<br>
[handlers]<br>
keys=production,file,devel<br>
<br>
[logger_root]<br>
level=NOTSET<br>
handlers=devel<br>
<br>
[logger_keystone]<br>
level=DEBUG<br>
handlers=devel<br>
qualname=keystone<br>
<br>
[logger_combined]<br>
level=DEBUG<br>
handlers=devel<br>
qualname=keystone-combined<br>
<br>
[handler_production]<br>
class=handlers.SysLogHandler<br>
level=ERROR<br>
formatter=normal_with_name<br>
args=(('localhost', handlers.SYSLOG_UDP_PORT),
handlers.SysLogHandler.LOG_USER)<br>
<br>
[handler_file]<br>
class=FileHandler<br>
level=DEBUG<br>
formatter=normal_with_name<br>
args=('/var/log/keystone/keystone.log', 'w')<br>
<br>
[handler_devel]<br>
class=StreamHandler<br>
level=NOTSET<br>
formatter=debug<br>
args=(sys.stdout,)<br>
<br>
[formatter_normal]<br>
format=%(asctime)s %(levelname)s %(message)s<br>
<br>
[formatter_normal_with_name]<br>
format=(%(name)s): %(asctime)s %(levelname)s %(message)s<br>
<br>
[formatter_debug]<br>
format=(%(name)s): %(asctime)s %(levelname)s %(module)s
%(funcName)s %(message)s<br>
<br>
<br>
<br>
Is anyone able to help out what's up with this?<br>
<br>
Cheers,<br>
<br>
Kev<br>
-- <br>
Kevin Jackson<br>
@itarchitectkev<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>