This logger send information into the Windows event logs. You can choose the name of your journal.
See Service Configuration for detailled information to configure your service. You must declare this logger with the <logger> section inside the <loggers> section. It will looks like :
<logger name="MyLoggerName" type="LeCouteauSuisse.Components.EventLogger,
LeCouteauSuisseComponents, Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
This component have some parameters inside the section <settings>. Each parameter is written with a <setting> section.
Key name | Mandatory | Default value | Description |
journal | No | The name of your service | The name of the log the source's entries are written to. Possible values include: Application, System, or a custom event log. |
source | No | The name of your service | The source name by which the application is registered on the local computer. |
createIfNotExist | No | true | Create the source and the journal if it does not exist on the computer. |
filterLevel | No | All | Filter message to log by level. List of value from the LoggerLevel enumeration separated by a comma. |