Closed fabmid closed 1 year ago
Please try putting this near the top of your file:
import logging
logging.basicConfig(level=logging.DEBUG)
Basically, by default the logger doesn't print informational lines. So we have to lower the level first.
https://docs.python.org/3/howto/logging.html has a bit more info if you want to redirect logs to a file, etc.
Thanks a lot, this solved my Issue!
Hi, I would like to use the LOGGER in platypus but could not find any example of how to print logger messages or even save it to any log file.
Looking at the source code, there is a LOGGER called platypus initialized in core.py and evaluator.py, but I could not make it work. I set the log_frequency parameter from the Algorithm parent class to 1, but I can not see any logger output. The simple example adapted:
I very appreciate any help on this! Thanks