Skip to content

94a6dad4 947b bd30 7e5f 056348d1bae6

Axel Kesseler edited this page Mar 1, 2023 · 12 revisions

ILoggerSettingsBuilder Interface

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

Syntax

C#

public interface ILoggerSettingsBuilder

The ILoggerSettingsBuilder type exposes the following members.

Properties

 

Name Description
Public property FileName The filename used to build the configuration.
Public property FileType The type of the configuration file.
  Back to Top

Methods

 

Name Description
Public method Build Builds the logger settings configuration instance.
Public method SetFilename(String) Sets the filename to be used to load the logger settings from.
Public method SetFilename(String, String) Sets the filename and type to be used to load the logger settings from.
  Back to Top

Remarks

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.

Examples

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();

See Also

Reference

Plexdata.LogWriter.Abstraction Namespace
Plexdata.LogWriter.Abstraction.ILoggerSettingsSection

Clone this wiki locally