C# Class Serilog.LoggerConfiguration

Configuration object for creating ILogger instances.
Afficher le fichier Open project: serilog/serilog Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ApplyInheritedConfiguration ( LoggerConfiguration child ) : void
child LoggerConfiguration
Résultat void

CreateLogger() public méthode

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
Résultat System.Logger