Overriding the logging class in WSGI does not work
I have implemented my own custom Logger for my django site:

    class SpecialLogger(logging.Logger):
        def __init__(self, name, level=logging.DEBUG):
            logging.Logger.__init__(self, name, level)

        def special(self, msg, *args, **kwargs):
            self.log(self.level, msg, *args, **kwargs)

In my wsgi file, I have added the lines:

    import logging
    from testbed.utils import SpecialLogger
    logging.setLoggerClass(SpecialLogger)

In my django views:

    1  import logging
    2  logger = logging.getLogger('mylog')
    3  print str(logging.getLoggerClass())
    4  print str(logger)
    5  print dir(logger)

Line #3 prints `testbed.utils.SpecialLogger`

Line #4 prints `<logging.Logger instance at 0x21aadcac>`

And Line #5 (of course) does not show my function `special`

What have I done wrong ? Why is there a discrepancy between lines 3 & 4 ?
Overriding the logging class in WSGI does not work
===

I have implemented my own custom Logger for my django site:

    class SpecialLogger(logging.Logger):
        def __init__(self, name, level=logging.DEBUG):
            logging.Logger.__init__(self, name, level)

        def special(self, msg, *args, **kwargs):
            self.log(self.level, msg, *args, **kwargs)

In my wsgi file, I have added the lines:

    import logging
    from testbed.utils import SpecialLogger
    logging.setLoggerClass(SpecialLogger)

In my django views:

    1  import logging
    2  logger = logging.getLogger('mylog')
    3  print str(logging.getLoggerClass())
    4  print str(logger)
    5  print dir(logger)

Line #3 prints `testbed.utils.SpecialLogger`

Line #4 prints `<logging.Logger instance at 0x21aadcac>`

And Line #5 (of course) does not show my function `special`

What have I done wrong ? Why is there a discrepancy between lines 3 & 4 ?