Re: Django 1.3 logging not working as I'd expect

2011-08-29 Thread Alexey Luchko
Hi, try executing import logging logger = logging.getLogger('testlogger') logger.warn('hello') logger.info('please appear') in ./manage shell. -- Alex -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Gelonida N
On 08/28/2011 03:43 AM, Scott Danzig wrote: > > Okay.. update.. it does seem to work right, even without forcing the > initialization as you suggested.. which is a relief.. Was losing my mind > (maybe Django 1.3 doesn't require the settings.LOGGING?) While testing with > prints, I realized the vi

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
Okay.. update.. it does seem to work right, even without forcing the initialization as you suggested.. which is a relief.. Was losing my mind (maybe Django 1.3 doesn't require the settings.LOGGING?) While testing with prints, I realized the view function I thought should be called wasn't called u

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Gelonida N
On 08/28/2011 12:00 AM, Scott Danzig wrote: > > > Gelonida N wrote: >> So before your three lines: >>> import logging >>> logger = logging.getLogger('otherlogger') >>> logger.warn('hello') >> you had to be sure, that the django settings and thus the logging >> configuration has really been comple

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
Gelonida N wrote: > > On 08/20/2011 06:51 AM, Scott Danzig wrote: > You have to be sure, that logging is configured before actually logging > anything. > > So before your three lines: >> import logging >> logger = logging.getLogger('otherlogger') >> logger.warn('hello') > you had to be sure, t

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
bruno desthuilliers-7 wrote: > > On 22 août, 13:27, Reinout van Rees wrote: >> >> Probably all your logging statements are executed right at file import >> time before the logging is actually configured. > > Using the DictConfig in settings.py, the logger is configured before > the apps models

Re: Django 1.3 logging not working as I'd expect

2011-08-22 Thread Gelonida N
On 08/20/2011 06:51 AM, Scott Danzig wrote: > I have Django 1.3 working with Python 2.7 and MySQL 5.5 on Mac OSX Lion... > > I'm betting I'm missing something straight forward, but: > > I have a simple Django app in development that uses a dictConfig setting > simpler than the default in settings

Re: Django 1.3 logging not working as I'd expect

2011-08-22 Thread bruno desthuilliers
On 22 août, 13:27, Reinout van Rees wrote: > > Probably all your logging statements are executed right at file import > time before the logging is actually configured. Using the DictConfig in settings.py, the logger is configured before the apps models / views / whatever are imported. @Scott: A

Re: Django 1.3 logging not working as I'd expect

2011-08-22 Thread Reinout van Rees
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 th

Django 1.3 logging not working as I'd expect

2011-08-19 Thread Scott Danzig
I have Django 1.3 working with Python 2.7 and MySQL 5.5 on Mac OSX Lion... I'm betting I'm missing something straight forward, but: I have a simple Django app in development that uses a dictConfig setting simpler than the default in settings.py: LOGGING = { 'version': 1, 'disable_existi