celery.utils.log

    class celery.utils.log.ColorFormatter(fmt=None, use_color=True)

    • 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’’>}

    • format(record)[源代码]

    class celery.utils.log.LoggingProxy(logger, loglevel=None)

    Forward file object to logging.Logger instance.

    • close()

      When the object is closed, no write requests are forwarded to the logging object anymore.

    • closed = False

    • This object is not buffered so any flush() requests are ignored.

    • loglevel = 40

    • mode = ‘w’

    • name = None

    • write(data)

      Write message to logging object.

    • writelines(sequence)[源代码]

      writelines(sequence_of_strings) -> None.

      The sequence can be any iterable object producing strings. This is equivalent to calling for each string.

    celery.utils.log.set_in_sighandler(value)[源代码]

    celery.utils.log.in_sighandler(\args, **kwds*)

    celery.utils.log.get_logger(name)

    celery.utils.log.get_task_logger(name)[源代码]

    celery.utils.log.mlevel(level)

    celery.utils.log.ensure_process_aware_logger(force=False)[源代码]

    Make sure process name is recorded when loggers are used.

    celery.utils.log.get_multiprocessing_logger()

    celery.utils.log.reset_multiprocessing_logger()[源代码]