-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Labels
Description
I have written python modules (or simple python code files) that import climada and use it. In these modules, I create a logger that is written to a file. So far so good.
The issue is that the CLIMADA logger is not redirected to the file but simply printed our in the console. Hence, if my application is running on a server and I want to look at the logs, the logging file does not show any of the climada logs.
My investigation suggests that this is because in the climada climada.util.config.setup_logging function, LOGGER.propagate is set to False, preventing the logger from propagating to upstream loggers.
- Can anyone confirm that setting propagate to False is the issue?
- What is the reason for setting propagate to False in CLIMADA?
- Do I have a way to have the climada logger redirected to upstream logger, e.g. loggers generated by
logging.basicConfig?