optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
22 stars 13 forks source link

Log to `stdout` #161

Closed AngelFP closed 8 months ago

AngelFP commented 8 months ago

Closes #160

Log optimas output to stdout instead of stderr. This makes it cleaner (it won't be mixed with warnings and logs from other dependencies) and is more in line with the user expectations.

AngelFP commented 8 months ago

That makes sense. Can we also register a user-specified handler (e.g., separate file?).

You mean to allow something like this?

exp = Exploration(
    ...
    log_file="optimas_log.txt"
)
exp.run()
ax3l commented 8 months ago

Yes, that or a generalized object (file or stream or in memory string). Not urgent, just a thought.