oslo_log.handlers

class oslo_log.handlers.ColorHandler(stream=None)

Bases: logging.StreamHandler

LEVEL_COLORS = {5: '\x1b[00;35m', 40: '\x1b[01;31m', 10: '\x1b[00;32m', 50: '\x1b[01;31m', 20: '\x1b[00;36m', 21: '\x1b[01;36m', 30: '\x1b[01;33m'}
format(record)
class oslo_log.handlers.OSSysLogHandler(facility=8)

Bases: logging.Handler

Syslog based handler. Only available on UNIX-like platforms.

emit(record)
severity_map = {'INFO': 6, 'WARNING': 4, 'CRITICAL': 2, 'WARN': 4, 'ERROR': 3, 'DEBUG': 7}