Is there a way to export logs without the Rich mark up syntax? Rich works perfectly fine at the terminal, the problem is I don't need them when I am not using a terminal (i.e. export to a different application, log store etc)
GH: https://github.com/kedro-org/kedro/issues/4487
At the moment the markup
flag is set per DataCatalog
rather than logHandler level, so I can only have all or none of my logHandlers use the markup logs.
I tried these methods but it doesn't work:
regex
, which is not reliable when the log message may contains bracket or so.markup
at the log message level. So the mark up is only added by the Kedro.RichHandler
Would have to do some exploration on that and see if we can move the calls to _format_rich
somewhere else. For now, I think the quick solution is not using the Rich handler at all, even on the terminal
this is something I do not want to do since I don't control the project run but rather collect information during runs. But I understand this seems to be only workaround for now
I think I find a solution that solve all the problems.
Cc @juanlu
https://github.com/kedro-org/kedro/pull/4496
^ I haven't fixed the test yet but would like to get some opinion on the approach first