I'm not sure whether this is your problem, but please note, that logging
to a log file is not a good idea for django, which might spawn multiple
processes.
logging to log files works only from multiple threads (all spanweed by
the same process)
For very first tests you could use a stdout / stderr log handler or
lateron a socket logger.
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/TKIfqpwWZcUJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
in settings.py
...
'loggers': {
'': { # catch all logger
'handlers': ['console'],
'level': 'WARNING', # re-defined in settings_dev
'propagate': True
},
...
And in files I need logging I do:
import logging
logging.basicConfig(format='%(levelname)s
%(module)s@%(filename)s@%(funcName)s@%(lineno)d: %(message)s',
level=logging.DEBUG)
...
logging.debug('test')
...
Daniel Sokolowski
Web Engineer
Danols Web Engineering
http://webdesign.danols.com/
Office: 613-817-6833
Fax: 613-817-4553
Toll Free: 1-855-5DANOLS
Kingston, ON K7L 1H3, Canada
Notice of Confidentiality:
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review re-transmission dissemination or other use of or taking
of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this in error
please contact the sender immediately by return electronic transmission and
then immediately delete this transmission including all attachments without
copying distributing or disclosing same.