#! /usr/bin/env python
# -*- coding: utf8 -*-

from django.conf import settings

import logging
import logging.handlers

LOG_FILENAME = getattr(settings, "LOG_FILENAME","")

logger = logging.getLogger('stigull')
handler = logging.handlers.RotatingFileHandler(
              settings.LOG_FILENAME, backupCount=5)
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)


class FileLoggingMiddleware(object):
    def process_exception(self, request, exception):
        logger.error(exception)

cc661c8f2c9940275e477775e2c1846174d16806
<mask token>


class FileLoggingMiddleware(object):

    def process_exception(self, request, exception):
        logger.error(exception)

<mask token>
handler.setFormatter(formatter)
logger.addHandler(handler)


class FileLoggingMiddleware(object):

    def process_exception(self, request, exception):
        logger.error(exception)

<mask token>
LOG_FILENAME = getattr(settings, 'LOG_FILENAME', '')
logger = logging.getLogger('stigull')
handler = logging.handlers.RotatingFileHandler(settings.LOG_FILENAME,
    backupCount=5)
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)


class FileLoggingMiddleware(object):

    def process_exception(self, request, exception):
        logger.error(exception)

from django.conf import settings
import logging
import logging.handlers
LOG_FILENAME = getattr(settings, 'LOG_FILENAME', '')
logger = logging.getLogger('stigull')
handler = logging.handlers.RotatingFileHandler(settings.LOG_FILENAME,
    backupCount=5)
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)


class FileLoggingMiddleware(object):

    def process_exception(self, request, exception):
        logger.error(exception)

#! /usr/bin/env python
# -*- coding: utf8 -*-

from django.conf import settings

import logging
import logging.handlers

LOG_FILENAME = getattr(settings, "LOG_FILENAME","")

logger = logging.getLogger('stigull')
handler = logging.handlers.RotatingFileHandler(
              settings.LOG_FILENAME, backupCount=5)
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)


class FileLoggingMiddleware(object):
    def process_exception(self, request, exception):
        logger.error(exception)
