Skip to content

Specifying log file location using .json runner #2699

Answered by trevorhardy
dhamilt6uvm asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the code in "cli.py" in PyHELICS, it doesn't look like there's a way to configure the location of the logging file.

BUT, I decided to add it as a feature since it seemed within my programming ability to achieve. I've added the feature in the "add_runner_logging_path" branch and have a PR in place now.

To use it just add "logging_path" at the root of the JSON and specify the location of where you'd like the logging files (relative the runner.json) to land. The path has to already exist; that is, this feature won't make folders for you, you have to get them in place yourself.

Here's an example of a modified runner for the "fundamental_default" example that puts the logs in a fold…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dhamilt6uvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants