Log streaming is available in both the web UI and CLI. It is also possible to stream logs using the SDK.
Navigate to a Job run part of an Experiment to view its logs. These logs are streamed in realtime while the Experiment runs. There are a few options such as Search, View all Logs, and Download Logs available on the page.
You can stream logs while the Experiment is running or after it has stopped.
gradient experiments logs --experimentId <id>
Hello PaperspaceCreating file /artifacts/myoutput1.txtCreating file /artifacts/myoutput2.txtFinished; returning exit code 0
Id of the experiment to view logs for.
Optional; if line is specified logs only logs after that line will be returned (up to limit).
Optional; number of log lines to retrieve on each request; default limit is 2000.
While using the SDK, you can print the logs of an Experiment.
#create a log stream & print all logs for the duration of experimentlog_stream = experiment_client.yield_logs(experiment_id)print("Streaming logs of experiment")try:while True:print(log_stream.send(None))except:print("done streaming logs")