I'm trying to get logs from my python module to show up in prefect.
the module is called "sec.py" and I import it like:
from sec.py import *
in sec.py the logger is defined as:
logging.basicConfig(
format="%(asctime)s:%(levelname)s:%(message)s",
level=
logging.INFO,
stream=sys.stdout,
datefmt="%m/%d/%Y %I:%M:%S %p",
)
logger = logging.getLogger()
my deployment has the infrastructure overrides set to:
{
"PREFECT_LOGGING_EXTRA_LOGGERS": "sec,root"
}
however no logs from that module show up when I call the code... but does when I use the same commands locally.
how do I fix this?