PyCharm 2024.3 Help

Setting log options

Use Logs tab in the Run/Debug Configuration dialogs to configure the way log files, generated by an application or server, are displayed in the console.

If your application or server generates log files, the default entries will be automatically added to the log file list in the Run/Debug Configuration dialog.

Configure options for logs

  1. Go to Run | Edit Configurations. Alternatively, click in the Run widget and select Edit Configurations from the drop-down menu.

    Run/Debug Configurations popup
  2. Click Modify options and select Specify logs to be shown in console.

    Adding an option to the run configuration
  3. In the Logs section, click the Add button the Add button. The Edit Log Files Aliases Dialog opens.

    Opening the Edit Log Files dialog
  4. In the Alias field, type the alias for the log entry.

  5. In the Log File Location field, specify the log files to display during running or debugging. You can specify the files by using two options:

    • Specify the full path to a specific file. Type the path manually or click the Browse button the Browse button and select the file.

    • Specify the base directory and add an Ant pattern that defines the fileset to be displayed.

  6. (Optional) Select the Show All Files Coverable by Pattern checkbox to open a separate tab for each log file that matches the specified Ant pattern.

  7. Click OK.

  8. In the Edit Log Files Aliases table, select the Is Active checkbox to have the log entries displayed in the corresponding tabs in the Run tool window or Debug tool window.

  9. To skip the previous content of the selected log, select the checkbox in the Skip Content column.

Last modified: 12 November 2024