I had troubles understanding the logging setup the first time, but after
that, its quite simple on every project. I usually end up copy/pasting some
console and db logger class and just add it to the config, I don't really
think it is that difficult
El martes, 6 de septiembre de 2016, 9:57:16
On 09/08/2016 11:31 PM, Ivan Sagalaev wrote:
> I'm not familiar with the current deprecation policy in Django. If you
> can point me to it, I could probably carve some time in the nearby
> future and prepare a pull request.
Here is the deprecation policy:
Le vendredi 9 septembre 2016 07:31:42 UTC+2, Ivan Sagalaev a écrit :
> I think the best end result would be one where LOGGING simply defines the
>> full config and it is always applied (by Django) exactly once, and the
>> defaults we want are set as the global default for LOGGING, and just
>>
Carl, I think this is the thread with your past comments:
https://groups.google.com/d/topic/django-developers/no2IhnRty68/discussion
To avoid a new setting, we could add some custom key/value to LOGGING for
the new behavior and pop it before the dict is passed to dictConfig.
On Tuesday,
On 09/06/2016 04:57 PM, Ivan Sagalaev wrote:
> I'm
> talking about this function:
> https://github.com/django/django/blob/master/django/utils/log.py#L66
>
> When `LOGGING_CONFIG` isn't explicitly disabled it first unconditionally
> initializes logging with the hard-coded configuration and then
>
> Just to be sure, which version of Django are you using? There were some
> simplifications in Django 1.9 that attempted to make writing custom logging
> configurations easier and further changes in Django 1.10.
>
I'm using 1.9, but I'm referring to the code in master.
>
>
>
> It’s unclear to me as well how the current system is intended to be used.
>
I can speculate, that the idea was that you *can* disable the existing
loggers and define your own, but the effect of it actually disabling all
logging from Django instead of it falling through to the custom root
Just to be sure, which version of Django are you using? There were some
simplifications in Django 1.9 that attempted to make writing custom logging
configurations easier and further changes in Django 1.10.
https://github.com/django/django/commit/8efea1b8d5b5fb0cfef1a3244c339cebf8af36c5
It’s unclear to me as well how the current system is intended to be used.
All my projects do this:
> # Configure logging manually to avoid merging with Django's defaults.
>
> LOGGING = {
> # custom logging configuration goes here
> }
>
> logging.config.dictConfig(LOGGING)
>
>
Hello everyone,
It's been a while since I last posted here, please forgive if I break any
new rules inadvertently.
I'd like to revisit a decision made in [18993][]. My use case is very
simple and obvious: I want all logging going into stdout.
As currently implemented, I can't do it easily
10 matches
Mail list logo