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

How to retrieve the terminal log using the sdk #3100

Open
Aydin-ab opened this issue Feb 14, 2024 · 0 comments
Open

How to retrieve the terminal log using the sdk #3100

Aydin-ab opened this issue Feb 14, 2024 · 0 comments
Labels
type / question Issue type: question

Comments

@Aydin-ab
Copy link

Aydin-ab commented Feb 14, 2024

❓Question

Hello,
I forgot to track a parameter but I do print it out during the runs so it is available on the terminal logs. I did capture the logs (I can read them on the UI).
My plan is to write a script that gets the logs, grep the parameter and then add it to the Run.
basically :

run = Run('hash')
logs = run.get_terminal_logs_as_str()
wanted param = extract_param_from_log_str()
run['wanted_param'] = wanted_params
run.close()

I can't do that 2nd step logs = run.get_terminal_logs_as_str(). Is there any way to retrieve the logs in string format ? The closest thing I find are run.get_log_records() and run.get_terminal_logs() but the first one returns None and the second one returns a Logs object that I don't understand how to use. They also have the same documentation so I'm not sure which one should I use

Thanks a lot

@Aydin-ab Aydin-ab added the type / question Issue type: question label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type / question Issue type: question
Projects
None yet
Development

No branches or pull requests

1 participant