Hi everyone, has anyone tried to use csv logger wi...
# questions
a
Hi everyone, has anyone tried to use csv logger with kedro logging.yml? https://pypi.org/project/csv-logger/
👀 1
n
I haven’t used it before, looks like a standard implementation with python logging. What do you want to do with it?
a
I want to include the class in the logging.yml so I can provide the option to save the logs in different formats
n
And do you hit any issue with it?
a
i am just trying to find an example on how to do it, as its quite different from the others
also like if there is a guide on how to include a custom logger
j
hmmm
Copy code
csvlogger = CsvLogger(...)

csvlogger.logs_b(...)

all_logs = csvlogger.get_logs(...)
that API seems a bit different from stdlib logging I'd say. regardless, maybe you can do
Copy code
handlers:
  console:
    class: csv_logger.CsvLogger
and see what happens? for customising logging, have a look at these docs:
well I can't find a docs page specifically about that but you should be able to adapt https://github.com/kedro-org/kedro/blob/main/kedro/framework/project/default_logging.yml, copy paste it in your
conf/base/logging.yml
, and change it
a
great thank you very much guys!
🚀 1