Skip to main content
When you run an experiment, you might notice 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. The following sections describe how to view, configure, search, filter, download, and copy console logs for your runs.

View console logs

Access console logs for a run in the W&B App to inspect messages produced during the run.
  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.
W&B stores a maximum of 100,000 lines of your logs for a run. In the W&B App, a maximum of 10,000 lines of your logs display at once. To view all stored lines, scroll through the logs to display older lines.

Types of console logs

W&B captures three types of console logs and adds a prefix to indicate each log’s severity. The prefix helps you scan logs and identify the messages most relevant to debugging. The following table summarizes each type, ordered from most to least severe.

Console log settings

To control which types of console output W&B captures and displays, pass a wandb.Settings object to wandb.init() when you initialize a run. The relevant parameters are show_errors, show_warnings, show_info, and silent. For details on each parameter and its default value, see the wandb.Settings reference. The following example shows how to configure these settings:

Custom logging

If you already have your own logging setup, you can continue to use it alongside W&B. W&B captures console logs from your application, but it doesn’t 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 look similar to the following:

Timestamps

W&B automatically adds timestamps to each console log entry. This lets you track when each log message was generated. To show or hide timestamps in the console logs, select the Timestamp visible drop-down list on the console logs page.

Search console logs

To quickly locate relevant entries, use the search bar on 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. Enter the label in the search bar on the console logs page.

Download console logs

To save logs locally for offline analysis or sharing, 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 on the console logs page.

Copy console logs

To paste logs into another tool or message, 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 on the console logs page.