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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo