Skip to content

SerilogSplatModule(ILogger?) constructor

Defined in

Type: SerilogSplatModule Namespace: Splat.Builder Assembly: Splat.Serilog.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public SerilogSplatModule(ILogger? actualLogger)
  • 2. public SerilogSplatModule()

1. Overload

public SerilogSplatModule(ILogger? actualLogger)

View source

Summary: Provides a ReactiveUI module that configures Serilog as the logging implementation for Splat, optionally using a specified Serilog logger instance.

Parameters

NameTypeDescription
actualLoggerILogger?The Serilog logger instance to use for logging. If null, a default logger will be configured.

Remarks

Use this module to integrate Serilog with Splat's logging infrastructure in ReactiveUI applications. If an explicit Serilog logger is provided, it will be used for all Splat logging; otherwise, the default Serilog logger configuration is applied.

2. Overload

public SerilogSplatModule()

View source

Summary: Initializes a new instance of the SerilogSplatModule class.