-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider removing support for project-side logging.yml #2281
Comments
Note that if this does get removed there's a subtle piece of functionality that exists in project-side logging.yml that's not easily reproduced in the framework-side one: the project-side logging.yml has something like this:
It's not possible to put this in the framework-side logging.yml because you don't know what the project name is there. We can achieve this by adding it in the Python code in
|
Notes from tech design discussion on 8 February
More research needed...@amandakys proposed doing more research. Relevant questions to try and answer would be:
|
A practical example as user input: we use global logging configuration for adding a handler for mlflow, and to be able to enable/disable. |
@sbrugman thanks for this. Can you give an example of what your logging configuration looks like in this case and how you enable/disable the mlflow handling? |
It's similar to the |
I do think there are some merit to keep the As mentioned you can't really configure this log level easily once it is moved into framework. IMO it also makes thing looks more like magic.
In general, I think Python Logging is not a well-understood topic and I still like the idea that it's is setup already in a project and I can easily configure or find out what's the default settings (similar to how we comment out the default options in |
I have probably missed out on the previous discussion about |
Sorry for the slow reply @noklam, I only just saw this. Basically the plan is to do #2206 first, which will introduce the The This is all unrelated to |
P.S. I definitely see the room for confusion between |
Conclusions from @amandakys's excellent user research:
Resulting actions:
After these changes, the flow of logging will change from the convoluted setup outlined in #2205 to the following:
|
Modifications to the above plan following technical design discussion on 12 April:
FYI @amandakys |
The project-side logging.yml configuration file has been optional since 0.18.2. Following #2206, a user will be able to specify a logging.yml configuration that takes effect from the beginning of the kedro process (i.e. not when the session is created). This leaves the question of whether there's any point still looking at this file at all.
Pros of removing
KEDRO_LOGGING_CONFIG
environment variableCons of removing
Pro or con depending on your opinion
The text was updated successfully, but these errors were encountered: