You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Piotr,
First, I wanted to let you know you are doing a great job!
We are trying to use mljar-supervised as a library in a large application. However, when trying to get log messages we see that your code set the default log level to ERROR. For example, at exceptions.py and automl.py. Calling basicConfig the second time does not affect the default logger and subsequent loggers. This makes it hard to use mljar as a library. We must make sure we call basicConfig first and then import AutoML... It feels like a race :-)
When running a library as part of an application, libraries should let the logging level, only use logger (e.g. logger = logging.getLogger(__name__)). Let the running application set the desired logging level. Libraries should set logging levels only on unit tests or CLI's.
In addition, mljar print messages about its current status using print command and not logging. This makes it hard to follow when running the application in a logging managed environment (like cloud providers). Can you please make the change? As those print messages comes mostly from verbose_print method, it looks like it is a single place to replace.
Thanks!
Haim
The text was updated successfully, but these errors were encountered:
Hi Piotr,
First, I wanted to let you know you are doing a great job!
We are trying to use mljar-supervised as a library in a large application. However, when trying to get log messages we see that your code set the default log level to ERROR. For example, at exceptions.py and automl.py. Calling basicConfig the second time does not affect the default logger and subsequent loggers. This makes it hard to use mljar as a library. We must make sure we call basicConfig first and then import AutoML... It feels like a race :-)
When running a library as part of an application, libraries should let the logging level, only use logger (e.g.
logger = logging.getLogger(__name__)
). Let the running application set the desired logging level. Libraries should set logging levels only on unit tests or CLI's.In addition, mljar print messages about its current status using
print
command and not logging. This makes it hard to follow when running the application in a logging managed environment (like cloud providers). Can you please make the change? As those print messages comes mostly fromverbose_print
method, it looks like it is a single place to replace.Thanks!
Haim
The text was updated successfully, but these errors were encountered: