Gorka Eguileor 08b854f6b2 Add log.get_loggers method
In the Cinder project restarting the volume service is problematic
because it's not only in the control path but also in the data path of
some operations, so restarting it to change log levels is really
disruptive because it takes a long time to be done properly and it does
not support Active-Active configurations yet.

For this reason there's a specific API to change the log levels
dynamically based on a given prefix [1], but this feature is accessing
directly the `_loggers` dictionary which is not ideal.

This patch adds a simple method called `get_loggers` that will return a
copy of the internal `_loggers` dictionary so that the Cinder feature
can be changed to use this instead.

[1] https://review.openstack.org/445885

Change-Id: Ife33a5dd044a4565ad6a4d559ef9f0c108f260a3
2017-06-26 17:03:53 +02:00
2017-06-26 17:03:53 +02:00
2016-12-20 13:10:56 +11:00
2017-04-08 22:52:25 +08:00
2017-04-08 22:52:25 +08:00
2017-04-08 22:52:25 +08:00
2017-04-12 04:20:05 +00:00
2017-03-03 00:03:04 +00:00
2017-01-17 10:27:47 -08:00

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).

Description
Logging library.
Readme 7.5 MiB
Languages
Python 100%