def init_logging():
    stdoutHandler = logging.StreamHandler(sys.stdout)
stdoutHandler.setLevel(DEBUG)
stdoutHandler.setFormatter(logging.Formatter(LOG_FORMAT_WITH_TIME))
logging.getLogger(LOG_AREA1).addHandler(stdoutHandler)
logInitDone = False
if not logInitDone:
    logInitDone = True
init_logging()
Python logging in Django