﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15749	Unable to set custom formatter class in LOGGING setting (dictConfig format)	marcel.dancak@…	nobody	"Following logging configuration in settings.py does ignore 'class' parameter and creates logging.Formatter instance:
{{{
LOGGING = {
    'version': 1,
    'formatters': {
        'colored': {
            'class': 'myproject.logging.ColoredFormatter',
            'format': '%(levelname).1s: [%(asctime)s] %(message)s (%(name)s)',
            'datefmt': '%H:%M:%S'
        }
    },
    ...
}
}}}

In previous Django versions without logging support I was successfully loading configuration with logging.config.fileConfig function, where configuration file contained following lines:

{{{
[formatter_coloredFormatter]
class=myproject.logging.ColoredFormatter
format=%(levelname).1s: [%(asctime)s] %(message)s (%(name)s)
datefmt=%H:%M:%S
}}}

So I guess dictConfig format should allow to configure the same parameters as other methods and therefore it should be a bug. Because I'm using Python 2.5.2, I'm not sure if this is problem of Python's builtin logging module or in Django (if you did some modifications to make it compatible with older Python versions), so I rather report it here.

Thanks"	Bug	closed	Uncategorized	1.3	Normal	invalid		marcel.dancak@…	Unreviewed	0	0	0	0	0	0
