Class UnityStructuredLogInstaller
Unity-specific installer for the structured logging module within the dependency injection
foundation. Extends LogInstaller to provide structured log sink installation with settings
loading, backend resolution via StructuredLogBackendFactory, and service
creation. Mirrors UnityFileLogInstaller's shape.
Namespace: Serenity.StructuredLogging.Installation.Installers
Assembly: Serenity.UnityStructuredLogging.Installation.dll
Syntax
public class UnityStructuredLogInstaller : LogInstaller, IFoundationInstaller, IInstaller
Constructors
UnityStructuredLogInstaller()
Declaration
public UnityStructuredLogInstaller()
Methods
Install(LoggingInstallerInstallInput)
Installs the structured log sink: validates input DTO, loads UnityStructuredLogSettings from addressable assets if not provided, resolves the configured backend via StructuredLogBackendFactory, creates UnityStructuredLogServiceFactory, and instantiates the structured logging service.
Declaration
public override void Install(LoggingInstallerInstallInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| LoggingInstallerInstallInput | input | UnityStructuredLogInstallerInstallInput containing settings and dependencies. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when input is null or settings cannot be found. |