Enable runtime Python logging
- Last UpdatedOct 29, 2026
- 2 minute read
This procedure enables logging for Python exceptions and errors, and HMI.Trace messages.
There are different steps for Windows and Linux runtime logging options (see below). These options can be applied independently, but the recommended practice is to enable all that apply while developing your application. For more information on log settings, see Configure the log settings for the Output window.
To enable logging for Python exceptions and HMI.Trace messages:
-
Right-click anywhere in the Studio Output window LogWin tab, then choose Settings on the shortcut menu.
The Log Settings dialog box is displayed with the Log Options tab selected. None of these options are enabled by default.
-
In the Log Options tab, you can enable Trace Messages to log HMI.Trace output for a Windows applications (Studio, SCADA, or Embedded HMI). (Enabling HMI.Trace logging for Linux is described below.)

-
In the Log Options tab, Error messages are enabled for both target systems (Windows or Linux) in a multistep process:
-
Enable Mobile Access/IoT View.

-
Use the ellipsis button next to the Mobile Access/IoT View check box to open the Mobile Access/IoT View dialog.
-
Enable Error in the Message Type group, which is enabled by default. For a Linux application (IoT View), enable any other options desired.

-
-
In the Mobile Access/IoT View dialog, you can enable Trace in the Message Type group to log HMI.Trace output for a for a Linux application (IoT View). Trace is not enabled by default.
