The Template specifies options that determine which trace entries will be written to the in-memory trace buffer. These are specified in two parts: the template pattern and the trace type. The template patterns consist of characters 'A-Z', 'a-z', '0-9', '_', '-', and '*'. The trace type is specified by typing a '+', '-', or blank under the associated trace type column. A '+' includes trace entries of this type matching the specified template pattern. A '-' excludes trace entries of this type matching the specified template pattern. A blank specifies that the template pattern does not apply to this trace type.
When console code calls trace, the trace code checks for the first matching pattern for that trace type. If there is no matching pattern, then the trace code discards the trace entry. If there is a matching pattern and the trace type specification is '+', then the trace entry is added to the in-memory trace buffer. If there is a matching pattern and the trace type specification is '-' then the trace code discards the trace entry.