-
Notifications
You must be signed in to change notification settings - Fork 0
94a6dad4 947b bd30 7e5f 056348d1bae6
Axel Kesseler edited this page Mar 1, 2023
·
12 revisions
A type used to build logger settings from external configuration.
Namespace: Plexdata.LogWriter.Abstraction
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
public interface ILoggerSettingsBuilder
The ILoggerSettingsBuilder type exposes the following members.
Name | Description | |
---|---|---|
FileName | The filename used to build the configuration. | |
FileType | The type of the configuration file. |
Name | Description | |
---|---|---|
Build | Builds the logger settings configuration instance. | |
SetFilename(String) | Sets the filename to be used to load the logger settings from. | |
SetFilename(String, String) | Sets the filename and type to be used to load the logger settings from. |
This interface represents a type used to build logger settings from external configuration. It is actually meant as replacement of interface IConfigurationBuilder
, which could not be used because of some version conflicts.
The code snippet below demonstrates how to instantiate and use the logger settings builder.
C#
ILoggerSettingsBuilder builder = new LoggerSettingsBuilder();
builder.SetFilename("logger-settings.json");
ILoggerSettingsSection settings = builder.Build();
Plexdata.LogWriter.Abstraction Namespace
Plexdata.LogWriter.Abstraction.ILoggerSettingsSection