Skip to main content
App version: 3.4.10

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 Attribute 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.

Capture console logs

Neptune logs the standard streams stderr and stdout automatically.

Change the storage location

By default, console logs are stored under the paths system/stdout and system/stderr.

To change the default system namespace, pass a different name to the system_namespace argument.

Disable tracking

To disable the tracking of console logs, set the enable_console_log_capture parameter to False.