This document describes the current stable version of Celery (3.1). For development docs, go here.
celery.utils.log¶
celery.utils.log¶
Logging utilities.
-
class
celery.utils.log.
ColorFormatter
(fmt=None, use_color=True)[source]¶ -
COLORS
= {u'blue': <bound method colored.blue of u''>, u'black': <bound method colored.black of u''>, u'yellow': <bound method colored.yellow of u''>, u'cyan': <bound method colored.cyan of u''>, u'green': <bound method colored.green of u''>, u'magenta': <bound method colored.magenta of u''>, u'white': <bound method colored.white of u''>, u'red': <bound method colored.red of u''>}¶
-
colors
= {'DEBUG': <bound method colored.blue of u''>, 'CRITICAL': <bound method colored.magenta of u''>, 'WARNING': <bound method colored.yellow of u''>, 'ERROR': <bound method colored.red of u''>}¶
-
-
class
celery.utils.log.
LoggingProxy
(logger, loglevel=None)[source]¶ Forward file object to
logging.Logger
instance.Parameters: - logger – The
logging.Logger
instance to forward to. - loglevel – Loglevel to use when writing messages.
-
close
()[source]¶ When the object is closed, no write requests are forwarded to the logging object anymore.
-
closed
= False¶
-
loglevel
= 40¶
-
mode
= 'w'¶
-
name
= None¶
- logger – The