Francois Deppierraz 93dd44f857 Convert unicode data to utf-8 before calling syslog.syslog()
Without this patch no conversion was taking place and message containing
special characters were raising TypeError exceptions. Just like the following
example:

>>> import syslog
>>> syslog.syslog(syslog.LOG_DEBUG, u"kaboom")
>>> syslog.syslog(syslog.LOG_DEBUG, u"François Deppierraz")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: [priority,] message string
>>>

Change-Id: I7557e016e8b9894033953bee689c79484c4a11f3
Closes-Bug: #1483842
2016-05-27 15:38:56 +02:00
2016-05-05 09:30:17 +08:00
2016-04-08 00:32:05 +00:00
2015-09-22 20:35:42 +00:00

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
RETIRED, further work has moved to Debian project infrastructure
Readme 813 KiB