Re: Configuration of "level" in LOGGING

2022-04-05 Thread Kshitij Gavhane
what if we just logg the key to python django level to retrieve logging info...? On Tue, Apr 5, 2022 at 6:55 AM Dan Swain wrote: > The current Django LOGGING setup requires a string for the "level". This > is not intuitive since the Python logging module defines logging.DEBUG, > logging.INFO,

Re: Configuration of "level" in LOGGING

2022-04-05 Thread Curtis Maloney
On Tue, 5 Apr 2022, at 09:26, Dan Swain wrote: > The current Django LOGGING setup requires a string for the "level". This is > not intuitive since the Python logging module defines logging.DEBUG, > logging.INFO, etc. I think one should be able to configure the logging level > using {

Re: Configuration of "level" in LOGGING

2022-04-05 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
#configuring-logging ) that says "level must be a string". On Tue, Apr 5, 2022 at 3:28 AM Jason Johns wrote: > How would this work with secret stores like hashicorp vault, aws secrets > manager? Or even via environment variables? This approach would work if > you define

Re: Configuration of "level" in LOGGING

2022-04-04 Thread Jason Johns
How would this work with secret stores like hashicorp vault, aws secrets manager? Or even via environment variables? This approach would work if you define the logging level in your configuration, but not so friendly for other approaches. On Monday, April 4, 2022 at 9:26:02 PM UTC-4 Dan

Configuration of "level" in LOGGING

2022-04-04 Thread Dan Swain
The current Django LOGGING setup requires a string for the "level". This is not intuitive since the Python logging module defines logging.DEBUG, logging.INFO, etc. I think one should be able to configure the logging level using { 'level': logging.DEBUG } rather than being required to use {