Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging to a file does not work #63

Open
Astarry opened this issue Nov 3, 2022 · 1 comment
Open

Logging to a file does not work #63

Astarry opened this issue Nov 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Astarry
Copy link

Astarry commented Nov 3, 2022

Tried h.helicsFederateSetLogFile(fed, helics.log) as well as setting logfile : "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

@trevorhardy
Copy link
Contributor

@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.)

@trevorhardy trevorhardy added the bug Something isn't working label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants