[Openstack] Keystone Not Logging

Andrew Michael Weiss weissa at purdue.edu
Mon Mar 19 05:47:42 UTC 2012


Hey Kevin,

I have found that by commenting out the log_config line and adding the following line you can get logging to work:

log_file = /var/log/keystone/keystone.log

I'm not sure how to get logging to work with the log_config file though.

Andrew


Sent from my iPhone


On Mar 18, 2012, at 16:05, Kevin Jackson <kevin at linuxservices.co.uk> wrote:

> Hi,
> I have Keystone set up (2012.1~rc1~20120316.2145-0ubuntu1) on Ubuntu 12.04 B1 and it isn't logging.
> Only when stopping the keystone service then running 'keystone-all' in a terminal do I get to see all the debug output.
> 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.
> 
> /etc/keystone/keystone.conf
> ...
> verbose = True
> debug = True
> log_config = /etc/keystone/logging.conf
> ...
> 
> 
> /etc/keystone/logging.conf
> [loggers]
> keys=root,keystone,combined
> 
> [formatters]
> keys=normal,normal_with_name,debug
> 
> [handlers]
> keys=production,file,devel
> 
> [logger_root]
> level=NOTSET
> handlers=devel
> 
> [logger_keystone]
> level=DEBUG
> handlers=devel
> qualname=keystone
> 
> [logger_combined]
> level=DEBUG
> handlers=devel
> qualname=keystone-combined
> 
> [handler_production]
> class=handlers.SysLogHandler
> level=ERROR
> formatter=normal_with_name
> args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
> 
> [handler_file]
> class=FileHandler
> level=DEBUG
> formatter=normal_with_name
> args=('/var/log/keystone/keystone.log', 'w')
> 
> [handler_devel]
> class=StreamHandler
> level=NOTSET
> formatter=debug
> args=(sys.stdout,)
> 
> [formatter_normal]
> format=%(asctime)s %(levelname)s %(message)s
> 
> [formatter_normal_with_name]
> format=(%(name)s): %(asctime)s %(levelname)s %(message)s
> 
> [formatter_debug]
> format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s
> 
> 
> 
> Is anyone able to help out what's up with this?
> 
> Cheers,
> 
> Kev
> -- 
> Kevin Jackson
> @itarchitectkev
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp




More information about the Openstack mailing list