Open Astarry opened 1 year ago
@Astarry, I almost always run my federations using the HELICS runner and when you do that, all messages do get sent to a log file.
The APIs you referenced, though should work. I just tried running the Fundamental Default example without using the HELICS runner and adding a log_file
parameter to the JSON config and it did not write out to that designated file. We've struggled with getting the logging to work correctly across the various language bindings so I'm not surprised this isn't quite working as expected.
(Also, sorry this response is so late. I didn't have Github sending me messages when new issues are posted.)
Tried
h.helicsFederateSetLogFile(fed, helics.log)
as well as settinglogfile : "helics.log"
in the config.json file. How do I get the helics federate to log to a file similar to the helics broker. Using version 3.3.0post0