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
As explained in #2205, there's a portion of framework-side logging setup in _ProjectLogging that cannot be modified by users. It would solve several issues if we could come up with a way to make this code user-accessible:
The proposed solution is to introduce an environment variable KEDRO_LOGGING_CONFIG (name tbc) which allows a user to provide an path to a logging.yml configuration file instead of the framework default_logging.yml. A user could then run export KEDRO_LOGGING_CONFIG=conf/base/logging.yml for example.
Docs will need to be updated with this.
The new code in _ProjectLogging would look something like this:
class _ProjectLogging(UserDict):
# pylint: disable=super-init-not-called
def __init__(self):
"""Initialise project logging. The path to logging configuration is given in
environment variable KEDRO_LOGGING_CONFIG (defaults to default_logging.yml)."""
path = os.environ.get("KEDRO_LOGGING_CONFIG", Path(__file__).parent / "default_logging.yml")
logging_config = Path(path).read_text(encoding="utf-8")
self.configure(yaml.safe_load(logging_config))
...
The text was updated successfully, but these errors were encountered:
As explained in #2205, there's a portion of framework-side logging setup in
_ProjectLogging
that cannot be modified by users. It would solve several issues if we could come up with a way to make this code user-accessible:The proposed solution is to introduce an environment variable
KEDRO_LOGGING_CONFIG
(name tbc) which allows a user to provide an path to a logging.yml configuration file instead of the frameworkdefault_logging.yml
. A user could then runexport KEDRO_LOGGING_CONFIG=conf/base/logging.yml
for example.Docs will need to be updated with this.
The new code in
_ProjectLogging
would look something like this:The text was updated successfully, but these errors were encountered: