Table of Contents

Class SerilogOptions

Namespace
Steeltoe.Extensions.Logging.DynamicSerilog
Assembly
Steeltoe.Extensions.Logging.DynamicSerilogBase.dll

Implements a subset of the Serilog Options needed for SerilogDynamicProvider

public class SerilogOptions : ISerilogOptions
Inheritance
SerilogOptions
Implements
Inherited Members

Properties

ConfigPath

public string ConfigPath { get; }

Property Value

string

FullnameExclusions

[Obsolete("No longer needed with current implementation. Will be removed in next major release")]
public IEnumerable<string> FullnameExclusions { get; }

Property Value

IEnumerable<string>

MinimumLevel

Gets or sets the minimum level for the root logger (and the "Default"). Limits the verbosity of all other overrides to this setting

public MinimumLevel MinimumLevel { get; set; }

Property Value

MinimumLevel

SubloggerConfigKeyExclusions

[Obsolete("No longer needed with current implementation. Will be removed in next major release")]
public IEnumerable<string> SubloggerConfigKeyExclusions { get; set; }

Property Value

IEnumerable<string>

Methods

GetSerilogConfiguration()

public LoggerConfiguration GetSerilogConfiguration()

Returns

LoggerConfiguration

SetSerilogOptions(IConfiguration)

public void SetSerilogOptions(IConfiguration configuration)

Parameters

configuration IConfiguration

SetSerilogOptions(LoggerConfiguration)

public void SetSerilogOptions(LoggerConfiguration loggerConfiguration)

Parameters

loggerConfiguration LoggerConfiguration