Re: Help me understand this logging config

2011-09-02 Thread Vinay Sajip
On Aug 30, 1:39 pm, Roy Smith wrote: > Oh, my, it turns out that django includes: > > # This is a copy of the Pythonlogging.config.dictconfig module, > # reproduced with permission. It is provided here for backwards > # compatibility for Python versions prior to 2.7. > > Comparing the django copy

Re: Help me understand this logging config

2011-09-02 Thread Vinay Sajip
On Aug 30, 1:39 pm, Roy Smith wrote: > Oh, my, it turns out that django includes: > > # This is a copy of the Pythonlogging.config.dictconfig module, > # reproduced with permission. It is provided here for backwards > # compatibility for Python versions prior to 2.7. > > Comparing the django copy

Re: Help me understand this logging config

2011-09-02 Thread Vinay Sajip
On Aug 30, 1:39 pm, Roy Smith wrote: > Oh, my, it turns out that django includes: > > # This is a copy of the Pythonlogging.config.dictconfig module, > # reproduced with permission. It is provided here for backwards > # compa

Re: Help me understand this logging config

2011-08-30 Thread Roy Smith
In article , Peter Otten <__pete...@web.de> wrote: > Roy Smith wrote: > > > I'm using django 1.3 and python 2.6. > > Isn't dictConfig() new in 2.7? It looks like that is what you are using... Oh, my, it turns out that django includes: # This is a copy of the Python logging.config.dictconfig m

Re: Help me understand this logging config

2011-08-30 Thread anand jeyahar
Hi, I took a look at the logging source code. getLogger checks for existing loggers with the given name and if it doesn't creates one. def getLogger(self, name): """ Get a logger with the specified name (channel name), creating it if it doesn't yet exist. This name is

Re: Help me understand this logging config

2011-08-30 Thread Peter Otten
Roy Smith wrote: > I'm using django 1.3 and python 2.6. Isn't dictConfig() new in 2.7? It looks like that is what you are using... > My logging config is: > > > LOGGING = { > 'version': 1, > 'disable_existing_loggers': False, > 'formatters': { > 'verbose': { > '

Help me understand this logging config

2011-08-29 Thread Roy Smith
I'm using django 1.3 and python 2.6. My logging config is: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(asctime)s: %(name)s %(levelname)s % (funcName)s %(message)s' } }, 'handlers':