Replies: 19 comments 5 replies
-
Not sure about this. There's a myriad mechanisms to manage environment variables, for example:
I'm not sure what makes I think we should stay away from being too smart about the user environment, and let them manage it. The core issue is:
which is a real user problem. But maybe we need to explore other solutions. |
Beta Was this translation helpful? Give feedback.
-
Updated the title to focus more on the logging problem. |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
Supplement on this, this will be a breaking change - because the config will no longer accept a full path but only the name of the files (or only relative to |
Beta Was this translation helpful? Give feedback.
-
Another user confused by this https://linen-slack.kedro.org/t/16362029/hi-i-have-recently-updated-the-kedro-version-but-now-i-am-ge#f6a6d4d0-7615-496e-b1a5-18037b944eda |
Beta Was this translation helpful? Give feedback.
-
Why is this environment variable necessary? Can we instead observe the project directory for a 'logging.yml' file and use it if found, or default to standard logging options if not? |
Beta Was this translation helpful? Give feedback.
-
I think we should consider @noklam's #3591 seriously, abstain from fiddling with user-specified logging settings (hence avoid #3474 instead of ignoring it), and if the user wants to provide a file-based logging config, they can always do so in their own code and place it wherever they like. It's clear that logging is an ongoing pain (almost 2 years since #1470 was opened), and we haven't yet fully solved it. |
Beta Was this translation helpful? Give feedback.
-
@DimedS IIRC it's because of two conflicting features:
This means that we need to read logging without configloader, and it's very common to put Cc @merelcht |
Beta Was this translation helpful? Give feedback.
-
This issue is partially overlap to #3591
I am particularly interested in your opinion about this @antonymilne. |
Beta Was this translation helpful? Give feedback.
-
Some extra reading material ahead of a TD session: |
Beta Was this translation helpful? Give feedback.
-
I'm a bit out of the loop here and will talk to @noklam to share my thoughts on it all in more detail, but some rough points:
|
Beta Was this translation helpful? Give feedback.
-
Quick 2 cents
|
Beta Was this translation helpful? Give feedback.
-
And
Not sure whether @noklam filled you in on the chat we had about #3657 (there's a brief summary there but not all the details). But I think we should definitely not set the global logging level to Agree that the current |
Beta Was this translation helpful? Give feedback.
-
I notice the discussion in this thread are mainly related to #3591, though they are related and maybe overlapping. I have this comment in #3657 #3657 (comment)
The idea is almost the same what @DimedS suggested, which we try to locate the |
Beta Was this translation helpful? Give feedback.
-
The solution is basically this: be3d28d in #3577. It should be handles the pattern slightly better, and try to access |
Beta Was this translation helpful? Give feedback.
-
(Not adding to the solution but more sharing my view...) As a user for several years (+5 years) of kedro since the early days before it was even called kedro, I was a bit thrown off that logging was removed by default in 0.19. Personally would still prefer it out of the box enabled by default (instead of having to read the docs to find out how to enable it, I would rather read the docs on how to disable if not needed). Also appreciate my view is one of many out there. To counter Juan's views:
(for) +1 on directing users to current best-practices for logging, including creating official integrations and docs for Sentry, OpenTelemetry
Both would be good in my case but it was really nice that logging was configured out of the box for a standard project, just like how we can choose spark to be part of the starter. Last resort: add documentation on how to configure logging.yaml to replicate old behaviour as we know Thankssss! |
Beta Was this translation helpful? Give feedback.
-
Quick summary:
Antony shared the old user research here in case you miss it at the end: #2281 (comment) |
Beta Was this translation helpful? Give feedback.
-
As a follow up, I have created #3801 to fix this issue. |
Beta Was this translation helpful? Give feedback.
-
This is now implemented in #3831 |
Beta Was this translation helpful? Give feedback.
-
Introduction
Previous discussion:
.env
file to setup logging #2428In previous discussion we banned the idea of introducing
.env
to enable logging, we introduce a new environment variableKEDRO_LOGGING_CONFIG
that user need to set in their environment (maybe in terminal orsettings.py
).With the new
kedro new
flow, whenlogging
is selected, it is not automatically used until user setKEDRO_LOGGING_CONFIG
manually.Context
(Edited: removed discussion above .env since it's off topic and confused people)
One more problem of
KEDRO_LOGGING_CONFIG
is that it's not immediately obvious where should user put this environment. There are many options:~/.bashrc
or it's variant, this way the environment variable is loaded in the beginningsettings.py
is too late)Beta Was this translation helpful? Give feedback.
All reactions