diff options
| author | Joe Heck <heckj@mac.com> | 2012-01-10 13:42:03 -0800 |
|---|---|---|
| committer | Joe Heck <heckj@mac.com> | 2012-01-10 13:42:18 -0800 |
| commit | 393aedb7ace6843b637aca7d156ffb9a430e671f (patch) | |
| tree | 215868ab754aeb61a9b0277dc81fd1bab21e7b15 /etc | |
| parent | 6540120494b0d5ed476ed053af980547bf26e4cd (diff) | |
adding logging from configuration files, default logging per common
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/keystone.conf | 11 | ||||
| -rw-r--r-- | etc/logging.conf.sample | 54 |
2 files changed, 65 insertions, 0 deletions
diff --git a/etc/keystone.conf b/etc/keystone.conf index a1837095..70559af8 100644 --- a/etc/keystone.conf +++ b/etc/keystone.conf @@ -3,6 +3,17 @@ public_port = 5000 admin_port = 35357 admin_token = ADMIN compute_port = 3000 +verbose = True +debug = False +#log_config = /etc/keystone/logging.conf + +# ================= Syslog Options ============================ +# Send logs to syslog (/dev/log) instead of to file specified +# by `log-file` +use_syslog = False + +# Facility to use. If unset defaults to LOG_USER. +# syslog_log_facility = LOG_LOCAL0 [sql] connection = sqlite:///bla.db diff --git a/etc/logging.conf.sample b/etc/logging.conf.sample new file mode 100644 index 00000000..6e3d1a04 --- /dev/null +++ b/etc/logging.conf.sample @@ -0,0 +1,54 @@ +[loggers] +keys=root,api,registry,combined + +[formatters] +keys=normal,normal_with_name,debug + +[handlers] +keys=production,file,devel + +[logger_root] +level=NOTSET +handlers=devel + +[logger_api] +level=DEBUG +handlers=devel +qualname=glance-api + +[logger_registry] +level=DEBUG +handlers=devel +qualname=glance-registry + +[logger_combined] +level=DEBUG +handlers=devel +qualname=glance-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=('glance.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 |
