Table of Contents

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

template string

Optional log output template.

logName string

Optional log name.

logPath string

Optional log file path.

culture CultureInfo

Optional culture used to format values in both log files. When null, the files are written with InvariantCulture.