I've had help from SO:
http://stackoverflow.com/questions/5249265/strange-behaviour-in-django-logging-django-1-3-rc/5250829#5250829
The solution is simply to explicitly call self.format(record) on my
emit() method under DatabaseHandler.
Hope this helps whoever face a similar problem.
-Edwin
On
Sorry I wasn't clear enough. Here's the stack trace:
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py" in get_response
89. response = middleware_method(request)
File "/home/user/projects/django/../django/common/middleware.py" in
process_re
On Sat, Mar 5, 2011 at 10:41 AM, Edwin wrote:
> I'm getting a strange behaviour when setting up logging. Here's my
> logging configuration:
>
> LOGGING =
> {
> 'version': 1,
> 'disable_existing_loggers': True,
> 'formatters': {
> 'admin_configuration': {
> 'format': '%(a
I'm getting a strange behaviour when setting up logging. Here's my
logging configuration:
LOGGING =
{
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'admin_configuration': {
'format': '%(asctime)s %(levelname)s %(category)s %
(sub_category)s %(type_
4 matches
Mail list logo