Hi all! In one of my prefect tasks I am capturing all stdout because I am importing a class from another module which uses logging.py to log, I am trying to caputure the log statements but this isn't working, any thoughts? None of the log_levels are being captured by the prefect task. Wondering if I'll have to import the prefect logger somehow in this module as well.
k
Kevin Kho
01/28/2022, 1:51 AM
Hi @Parth Patel, have you seen this part of the docs?
p
Parth Patel
01/28/2022, 7:11 PM
ahhh in the extra_loggers section can I putting in 'logging' if we're using the python builtin logging library
k
Kevin Kho
01/28/2022, 7:15 PM
You add the logger of the module you are importing. Yes it should work. The Prefect logger is a built-in logger too
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.