Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines an event source within a custom event log.
Element hierarchy
<Package>
└─ <Extensions>
└─ <desktop10:Extension>
└─ <desktop10:CustomDesktopEventLog>
└─ <desktop10:CustomEventSources>
└─ <desktop10:CustomEventSource>
└─ <Applications>
└─ <Application>
└─ <Extensions>
└─ <desktop10:Extension>
└─ <desktop10:CustomDesktopEventLog>
└─ <desktop10:CustomEventSources>
└─ <desktop10:CustomEventSource>
Syntax
<desktop10:CustomEventSource
EventSourceName = 'A required string between 1 and 2048 characters in length.'
CategoryCount = 'An optional positive integer between 0 and 4294967295.'
CategoryMessageFile = 'An optional string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *, ending with the case-insensitive file extension `.dll` or `.exe`.' >
<!-- Child elements -->
desktop10:EventMessageFiles
desktop10:TypesSupported
</desktop10:CustomEventSource>
Attributes
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| EventSourceName | The name of the custom event source. Used as the registry key name. | A string between 1 and 2048 characters in length. | Yes | |
| CategoryCount | Number of event categories supported. | An optional positive integer between 0 and 4294967295. | No | |
| CategoryMessageFile | Path to the category message file. A category message file contains language-dependent strings that describe the categories. | An optional string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *, ending with the case-insensitive file extension .dll or .exe. |
No |
Child elements
| Child element | Description |
|---|---|
| desktop10:EventMessageFiles | Defines 1 or more DLL files containing the language strings describing the events. |
| desktop10:TypesSupported | Defines 1 or more of the event log types supported by the event source. |
Parent elements
| Parent element | Description |
|---|---|
| desktop10:CustomEventSources |
Requirements
| Item | Value |
|---|---|
| Namespace | http://schemas.microsoft.com/appx/manifest/desktop/windows10/10 |
| Minimum OS Version | Windows 11 version 22H2 (Build 22621) |
Remarks
For more information on custom event sources, see Event Sources.