4 ms·
> directly by just get a better logging module that does the checks Because logging is a cross-cutting concern and the built-in logging module is the common de
by Spivak 3y ago
> directly by just get a better logging module that does the checks
Because logging is a cross-cutting concern and the built-in logging module is the common denominator that packages in the Python ecosystem have to generate logs without knowing anything about the application they might be embedded into.
So while you're free to use whatever logging module in your own top-level code, your dependencies will use the logging module and you have to deal with that. Packages have to find a way to integrate with it https://www.structlog.org/en/stable/api.html#structlog.stdlib.recreate_defaults https://www.structlog.org/en/stable/api.html#structlog.stdli...