Class UnityFileLogInstaller
Unity-specific installer for file logging module within dependency injection foundation.
Extends LogInstaller to provide Unity file logging service installation with
settings loading, factory configuration, and dependency resolution. Handles
addressable asset loading for UnityFileLogSettings and integrates persistence
use cases with path services for file-based logging operations.
Namespace: Serenity.EventDispatcher.Installation.Installers
Assembly: Serenity.UnityFileLogging.Installation.dll
Syntax
public class UnityFileLogInstaller : LogInstaller, IFoundationInstaller, IInstaller
Constructors
UnityFileLogInstaller(ILogService)
Declaration
public UnityFileLogInstaller(ILogService installationLog)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | installationLog | Where the discovered settings asset is reported when none was wired — above all when several project-owned ones exist. Reported before the file service is built, since building it can fail; the installation step passes the console log installed before this sink. |
Methods
Install(LoggingInstallerInstallInput)
Installs Unity file logging service with settings resolution and dependency configuration.
Validates input DTO, loads UnityFileLogSettings from addressable assets if not provided,
creates UnityFileLogServiceFactory, and instantiates file logging service with
persistence use cases and path service dependencies for file-based logging operations.
Declaration
public override void Install(LoggingInstallerInstallInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| LoggingInstallerInstallInput | input | UnityFileLogInstallerInstallInput containing settings and dependencies |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when input is null or settings cannot be found |