datajoely / kedro-rich

Make your Kedro experience snazzy
36 stars 4 forks source link

Apply the rich `rich.logging.RichHandler` gracefully #5

Open datajoely opened 2 years ago

datajoely commented 2 years ago

Description

In order to enable the rich logging handler via an external plugin we currently intercept the way that the KedroSession parses the contents of conf/base/logging.yml and ensure that the console key is updated to use the right handler.

I tried for agest to intercept the handlers after creation and change them dynamically through approaches like this but this is the only mechanism I could get to work.

Potential solutions to evaluate: