| author | Production Moz <dev@sopinspace.com> |
| Mon, 05 Aug 2013 03:32:19 +0200 | |
| changeset 527 | 4176ce2c3289 |
| parent 360 | bfaab8740995 |
| permissions | -rw-r--r-- |
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()