I'm using the logging framework in django 1.3 as described here https://docs.djangoproject.com/en/1.3/topics/logging/
In my settings.py file for my DEV environment, i basically have custom formatter, logger and handler defined so that i can log debug output to a file.
So now in my code i've got logger.debug() statements all over the place.
My questions are:
- When i deploy in production do the logger.debug statements have any (signficant) effect on performance? (i.e. do i need to take them all out?)
- What is the best way to change the settings.py file so that it no longer captures to file? Currently i'm just changing the handler to django.utils.log.NullHandler