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

Bases: logging.Handler

custom_fields = ('project_name', 'project_id', 'user_name', 'user_id', 'request_id')
emit(record)
class oslo_log.handlers.OSSysLogHandler(facility=None)

Bases: logging.Handler

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

emit(record)