Re: Proposal for 1.2: built-in logging with django.core.log

2009-10-04 Thread Vinay Sajip
On Oct 4, 9:22 pm, Ivan Sagalaev wrote: > I see one problem with explicitly calling a function from settings.py. > This will execute instantiation of handlers and all the user staff very > early when settings aren't fully configured yet. This prevents a user to > have a handler that will use Dj

Re: Proposal for 1.2: built-in logging with django.core.log

2009-10-04 Thread Vinay Sajip
On Oct 4, 8:55 pm, Ivan Sagalaev wrote: > Uhm... No this is not about hand-holding or something like that. I > propose a format that is shorter and more convenient than the > ConfigParser's. This is the point. > > > My reservation with Django's own take on it is simply > > that it goes against

Re: Proposal for 1.2: built-in logging with django.core.log

2009-10-04 Thread Ivan Sagalaev
Vinay Sajip wrote: > We should provide a configure_logging(dict) utility function which > takes a dict in an agreed format (such as Ivan's suggestion). Then in > settings.py users can invoke configure_logging(LOGGING) after > defining the configuration right there, in settings.py itself, or > obt

Re: Proposal for 1.2: built-in logging with django.core.log

2009-10-04 Thread Ivan Sagalaev
Sorry for taking a bit long to respond. Looks like we aren't disagree much anyway but I had to get some thoughts off my chest :-). Vinay Sajip wrote: > It's similar to Django's support for, say, simplejson. I think it's > reasonable for Django to alias WatchedFileHandler so that it's > available