Log text
You can log different types of text to an attribute of a run.
Log a single string
To log a single string, use the log_configs()
function.
Log a series of strings
To log a series of strings to a single attribute, use the log_string_series()
function:
from neptune_scale import Run
with Run(...) as run:
run.log_string_series(
data={"messages/errors": "Job failed", "messages/info": "Training completed"},
step=1.2,
)
Analyze string series in the app
To view the logged string series in the Neptune app, you can do the following:
- In the runs table, add a
StringSeries
attribute as a column. Note that only the last entry is displayed. - In the Attributes tab of a selected run, access and view the entire string series.
- In dashboards and reports, configure a logs widget.
Log a text file
For details on uploading files, see Log files.