Traces entering an event handler for a specific GUI component, and increases the indentation.
The type of component (Button, MenuItem, etc.), its name, and its label, if any, are shown in the log output. If the naming of your event handler follows the standard convention of [control name]_[event name] (as in, for example, dataGridView_CellFormatting), the name of the event (e.g. CellFormatting) is also reported.
StructuredTraceSource Class | CleanCode.Diagnostics Namespace