Skip to main content
When you run an experiment, you may notice various messages printed to your console. W&B captures console logs and displays them in the W&B App. Use these messages to debug and monitor the behavior of your experiment.

View console logs

Access console logs for a run in the W&B App:
  1. Navigate to your project in the W&B App.
  2. Select a run within the Runs table.
  3. Click the Logs tab in the project sidebar.
Only 10,000 lines of your logs are shown due to storage limitations

Types of console logs

W&B captures several types of console logs: informational messages, warnings, and errors, with a prefix to indicate the log’s severity.

Informational messages

Informational messages provide updates about the run’s progress and status. They are typically prefixed with wandb:.

Warning messages

Warnings about potential issues that don’t stop execution are prefixed with WARNING:

Error messages

Error messages for serious issues are prefixed with ERROR:. These indicate problems that may prevent the run from completing successfully.

Console log settings

Within your code, pass the wandb.Settings object to wandb.init() to configure how W&B handles console logs. Within wandb.Settings, you can set the following parameters to control console log behavior:
  • show_errors: If set to True, error messages are displayed in the W&B App. If set to False, error messages are not shown.
  • silent: If set to True, all W&B console output will be suppressed. This is useful for production environments where you want to minimize console noise.
  • show_warnings: If set to True, warning messages are displayed in the W&B App. If set to False, warning messages are not shown.
  • show_info: If set to True, informational messages are displayed in the W&B App. If set to False, informational messages are not shown.
The following example shows how to configure these settings:

Custom logging

W&B captures console logs from your application, but it does not interfere with your own logging setup. You can use Python’s built-in print() function or the logging module to log messages.
The console logs will look similar to the following:

Time stamps

Time stamps are automatically added to each console log entry. This allows you to track when each log message was generated. You can toggle the time stamps in the console logs on or off. Within the console page select the Timestamp visible dropdown in the top left corner. You can choose to show or hide the time stamps.

Search console logs

Use the search bar at the top of the console logs page to filter logs by keywords. You can search for specific terms, labels, or error messages.

Filter with custom labels

Parameters prefixed by x_ (such as x_label) are in public preview. Create a GitHub issue in the W&B repository to provide feedback.
You can filter console logs based on the labels you pass as arguments for x_label in wandb.Settings in the UI search bar located at the top of the console log page.

Download console logs

Download console logs for a run in the W&B App:
  1. Navigate to your project in the W&B App.
  2. Select a run within the Runs table.
  3. Click the Logs tab in the project sidebar.
  4. Click the download button in the top right corner of the console logs page.

Copy console logs

Copy console logs for a run in the W&B App:
  1. Navigate to your project in the W&B App.
  2. Select a run within the Runs table.
  3. Click the Logs tab in the project sidebar.
  4. Click the copy button in the top right corner of the console logs page.