Constructor SerilogConfigurationBundle
- Namespace
- Ploch.CommandLine.Spectre.Serilog
- Assembly
- Ploch.CommandLine.Spectre.Serilog.dll
SerilogConfigurationBundle(string?, string?, string?, CultureInfo?)
Provides a Ploch.Common.DependencyInjection.ServicesBundle for configuring Serilog logging, optionally reading further settings from an IConfiguration. Allows optional customisation of the log output template, log name, log file path, and the culture used to format values in the log files.
public SerilogConfigurationBundle(string? template = null, string? logName = null, string? logPath = null, CultureInfo? culture = null)
Parameters
templatestringOptional log output template.
logNamestringOptional log name.
logPathstringOptional log file path.
cultureCultureInfoOptional culture used to format values in both log files. When null, the files are written with InvariantCulture.