hi, does kedro support out of the box google cloud...
# questions
a
hi, does kedro support out of the box google cloud logging lib in logging formats? I am not clear on the documentation how advanced adding custom handlers is possible or do I have to do it manually? When would it be better to initialize? After or before kedro loading?
h
Someone will reply to you shortly. In the meantime, this might help:
a
ah the logging format in logging.yml seems to be the dictConfig format which can also be used to configure google logger, looks like the answer is yes.
d
Yeah I think you can just swap the handler!
if you get it running it would be great if you can show us what your config looks like?
a
There's a catch though:
Copy code
Note that since CloudLoggingHandler requires an already initialized Client, you must initialize a client and include it in the dictConfig entry for a CloudLoggingHandler.
So it looks like it would be doable with omegaconfigloader hook in that place - does reading logging conf support omegaconf?
d
Hmm I'm not sure
let me ask the team
👍 1
a
did you get an answer? I'll just run a quick check
d
not yet
may be a next week thing
a
looks like it does not support it
Copy code
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'console2'

ValueError: Unable to set formatter '${foo}'

ValueError: Unable to set formatter '${foo:}'
^ attempted to add foo handler to omegaconf
n
Logging does not support omegaconf out of the box, you can however add additional handler or update it in hooks. from kedro.framework.project import LOGGING
👍 1
a
Does it make sense to update it to enable omegaconf handling of loading that yaml?
n
We actually went through the opposite path,
logging.yml
was one of the config type that behaves just like
parameters
or
catalog
. https://github.com/kedro-org/kedro/issues/2426