Class WinEventLogLoggerProvider
- Namespace
- VpnHood.Core.Client.Devices.WindowsTun
- Assembly
- VpnHood.Core.Client.Devices.WindowsTun.dll
Provides the Application log as a sink, for the process's life, under the service's name: the source its own start and stop entries have.
public sealed class WinEventLogLoggerProvider : ILoggerProvider, IDisposable
- Inheritance
-
WinEventLogLoggerProvider
- Implements
- Inherited Members
Remarks
One logger serves every category, without the level word and the scopes: the entries name the service, not a category, and show their level.
Constructors
WinEventLogLoggerProvider(string)
Provides the Application log as a sink, for the process's life, under the service's name: the source its own start and stop entries have.
public WinEventLogLoggerProvider(string sourceName)
Parameters
sourceNamestringThe service's name: the service's process and its window's, which runs as the person and may write to that source once the service's setup has registered it.
Remarks
One logger serves every category, without the level word and the scopes: the entries name the service, not a category, and show their level.
Methods
CreateLogger(string)
Gets the one logger, which serves every category.
public ILogger CreateLogger(string categoryName)
Parameters
categoryNamestringThe category, which the entries leave out.
Returns
- ILogger
The logger.
Dispose()
Closes the Application log.
public void Dispose()