This document describes the current stable version of Celery (4.0). For development docs, go here.
celery.utils.log¶
Logging utilities.
-
class
celery.utils.log.ColorFormatter(fmt=None, use_color=True)[source]¶ Logging formatter that adds colors based on severity.
-
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= {u'DEBUG': <bound method colored.blue of u''>, u'CRITICAL': <bound method colored.magenta of u''>, u'WARNING': <bound method colored.yellow of u''>, u'ERROR': <bound method colored.red of u''>}¶
-
-
class
celery.utils.log.LoggingProxy(logger, loglevel=None)[source]¶ Forward file object to
logging.Loggerinstance.Parameters: -
closed= False¶
-
loglevel= 40¶
-
mode= u'w'¶
-
name= None¶
-
-
celery.utils.log.set_in_sighandler(value)[source]¶ Set flag signifiying that we’re inside a signal handler.