Closed bertsky closed 3 years ago
I expected to be able to call getLogger
even on the toplevel to avoid having function calls with every execution of a function using logging.
I expected to be able to call
getLogger
even on the toplevel to avoid having function calls with every execution of a function using logging.
Yes, that's a big downside of the recent changes in core. But AFAICT there' s no problem if you just use standard Python's logging.getLogger
instead – ocrd_utils.logging
will pick up the existing loggers (overriding their level if --log-level
was used on the CLI) and destroy any default logging.basicConfig
.
So whatever suits you better IMO.
This avoids: