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.Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-docs-2661.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
View console logs
Access console logs for a run in the W&B App to inspect messages produced during the run.- Navigate to your project in the W&B App.
- Select a run within the Runs table.
- 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.| Severity | Prefix | Description | Example |
|---|---|---|---|
| Error | ERROR | Serious issues that might prevent the run from completing successfully. | ERROR Failed to save notebook. |
| Warning | WARNING | Potential issues that don’t stop execution. | WARNING Found .wandb file, not streaming tensorboard metrics. |
| Info | wandb: | Updates about the run’s progress and status. | wandb: Starting Run: abc123 |
Console log settings
To control which types of console output W&B captures and displays, pass awandb.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-inprint() function or the logging module to log messages.
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
You can filter console logs based on the labels you pass as arguments forx_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:- Navigate to your project in the W&B App.
- Select a run within the Runs table.
- Click the Logs tab in the project sidebar.
- 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:- Navigate to your project in the W&B App.
- Select a run within the Runs table.
- Click the Logs tab in the project sidebar.
- Click the copy button on the console logs page.