Logging library.
Go to file
Suff 89bbb3fb79 Fix Formatter subclasses for Python 3.2+
Python 3.2 added the 'style' parameter to 'logging.Formatter.__init__'.
This is provided by 'logging.config.fileConfig' meaning this currently
raises a 'TypeError' similar to the below when the incompatible
formatters, JSONFormatter and FluentFormatter, are used with Python 3.2
or greater.

  TypeError: __init__() got an unexpected keyword argument 'style'

Resolve this by simply adding the parameter to the list. There is more
work we can do here (like actually supporting this parameter) but that's
a job for another patch.

Note that we can't actually test this as doing so would involve invoking
'logging.config.fileConfig', which in turn would modify the global state
of the 'logging' module. You can thank the singleton pattern for that.

Change-Id: I9b339163ddfe440bc6782ced33595a0dcf60f658
Closes-Bug: 1739743
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
2018-05-03 10:16:09 +01:00
doc/source Fix file permissions 2018-05-03 10:16:08 +01:00
oslo_log Fix Formatter subclasses for Python 3.2+ 2018-05-03 10:16:09 +01:00
playbooks/legacy/oslo.log-src-grenade-devstack Migrate to Zuul v3 2017-10-12 03:46:50 +00:00
releasenotes Imported Translations from Zanata 2018-03-01 06:25:12 +00:00
tools Fix sphinx-docs job 2018-04-27 19:01:50 +02:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:22:34 -04:00
.gitignore Merge "Add reno for release notes management" 2016-02-18 20:49:12 +00:00
.gitreview exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
.mailmap exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
.testr.conf Move files out of the namespace package 2014-12-17 21:43:41 -05:00
.zuul.yaml add lower-constraints job 2018-03-24 21:02:30 -04:00
CONTRIBUTING.rst Optimize the link address 2017-04-08 22:52:25 +08:00
HACKING.rst Update URLs according to document migration 2017-07-11 22:46:53 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
README.rst Trivial: Update pypi url to new url 2018-04-27 19:54:15 +00:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-08-25 14:42:22 -04:00
lower-constraints.txt add lower-constraints job 2018-03-24 21:02:30 -04:00
requirements.txt Updated from global requirements 2018-03-15 07:48:47 +00:00
setup.cfg Update URLs according to document migration 2017-07-11 22:46:53 +08:00
setup.py Updated from global requirements 2017-03-03 00:03:04 +00:00
test-requirements.txt Updated from global requirements 2018-03-15 07:48:47 +00:00
tox.ini Remove stale pip-missing-reqs tox test 2018-05-01 09:57:43 -04:00

README.rst

Team and repository tags

image

oslo.log -- Oslo Logging Library

Latest Version

Downloads

The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).