src/cm/main.py
author gibus
Thu, 28 Nov 2013 09:11:51 +0100
changeset 565 95a5c06c4008
parent 360 bfaab8740995
permissions -rw-r--r--
With JQuery > 1.6 replace .attr() by .prop() or .val(), see http://api.jquery.com/prop/

import logging
from django.db.models import signals

def logger_config():
    # create logger
    logger = logging.getLogger()
    ch = logging.StreamHandler()
    # create formatter
    formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - %(module)s - %(funcName)s - %(message)s")
    # add formatter to ch
    ch.setFormatter(formatter)
    # add ch to logger
    logger.addHandler(ch)

logger_config()