'Setup the task logger.
If `logfile` is not specified, then `sys.stderr` is used.
Will return the base task logger object.'

def setup_task_loggers(self, loglevel=None, logfile=None, format=None, colorize=None, propagate=False, **kwargs):

    loglevel = mlevel((loglevel or self.loglevel))
    format = (format or self.task_format)
    colorize = self.supports_color(colorize, logfile)
    logger = self.setup_handlers(get_logger(u'celery.task'), logfile, format, colorize, formatter=TaskFormatter, **kwargs)
    logger.setLevel(loglevel)
    logger.propagate = int(propagate)
    signals.after_setup_task_logger.send(sender=None, logger=logger, loglevel=loglevel, logfile=logfile, format=format, colorize=colorize)
    return logger
