Skip to content Skip to sidebar Skip to footer

Django 1.4 "logging" Variable In Settings.py Seems To Be Ignored

I've got a module I want to log in Django that looks something like this: import logging logger = logging.getLogger(__name__) def foo(): #this is a test of logging logger.

Solution 1:

As usual, typing it up on stack overflow lead me to realize my mistake.

Rather than calling

logger = logging.getLogger(__name__)

I needed to call the desired logger specifically:

logger = logging.getLogger('django')

This has solved the problem.

Post a Comment for "Django 1.4 "logging" Variable In Settings.py Seems To Be Ignored"