C# Class Serilog.LoggerConfiguration

Configuration object for creating ILogger instances.
Show file Open project: serilog/serilog Class Usage Examples

Public Methods

Method Description
ApplyInheritedConfiguration ( LoggerConfiguration child ) : void
CreateLogger ( ) : System.Logger

Create a logger using the configured sinks, enrichers and minimum level.

To free resources held by sinks ahead of program shutdown, the returned logger may be cast to IDisposable and disposed.

Method Details

ApplyInheritedConfiguration() public method

public ApplyInheritedConfiguration ( LoggerConfiguration child ) : void
child LoggerConfiguration
return void

CreateLogger() public method

Create a logger using the configured sinks, enrichers and minimum level.
To free resources held by sinks ahead of program shutdown, the returned logger may be cast to IDisposable and disposed.
public CreateLogger ( ) : System.Logger
return System.Logger