View console logs
Access 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.
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 withwandb:
.
Warning messages
Warnings about potential issues that don’t stop execution are prefixed withWARNING:
Error messages
Error messages for serious issues are prefixed withERROR:
. These indicate problems that may prevent the run from completing successfully.
Console log settings
Within your code, pass thewandb.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 toTrue
, error messages are displayed in the W&B App. If set toFalse
, error messages are not shown.silent
: If set toTrue
, 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 toTrue
, warning messages are displayed in the W&B App. If set toFalse
, warning messages are not shown.show_info
: If set toTrue
, informational messages are displayed in the W&B App. If set toFalse
, informational messages are not shown.
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-inprint()
function or the logging
module to log messages.
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.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:- 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 in the top right corner of the console logs page.
Copy console logs
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 in the top right corner of the console logs page.