<PackageReference Include="NLog" Version="6.0.7" />

NLog.Config.InstallationContext

public sealed class InstallationContext : IDisposable
Provides context for install/uninstall operations.
public bool IgnoreFailures { get; set; }

Gets or sets a value indicating whether to ignore failures during installation.

public LogLevel LogLevel { get; set; }

Gets or sets the installation log level.

public TextWriter LogOutput { get; set; }

Gets or sets the log output.

public IDictionary<string, string> Parameters { get; }

Gets the installation parameters.

public bool ThrowExceptions { get; set; }

Whether installation exceptions should be rethrown. If IgnoreFailures is set to true, this property has no effect (there are no exceptions to rethrow).

Initializes a new instance of the InstallationContext class.

public InstallationContext(TextWriter logOutput)

Initializes a new instance of the InstallationContext class.

Creates the log event which can be used to render layouts during install/uninstall.

public void Debug(string message, object[] arguments)

Logs the specified debug message.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Error(string message, object[] arguments)

Logs the specified error message.

public void Info(string message, object[] arguments)

Logs the specified informational message.

public void Trace(string message, object[] arguments)

Logs the specified trace message.

public void Warning(string message, object[] arguments)

Logs the specified warning message.