On 20-08-11 06:51, Scott Danzig wrote:
I have a simple Django app in development that uses a dictConfig setting simpler than the default in settings.py: LOGGING = {
[snip]
} Then later in code that I know is run... (I tried in my app's views.py and also the backend).. I put something like this: import logging logger = logging.getLogger('testlogger') logger.warn('hello') logger.info('please appear') And I just don't see it, neither in the console, nor the file.
Probably all your logging statements are executed right at file import time before the logging is actually configured.
Just as a simple test, put such a logging statement inside one of your view methods and hit it in your browser. Just to make sure your logging setup as such works.
Reinout -- Reinout van Rees http://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.