3using Microsoft.Extensions.Logging;
5using Newtonsoft.Json.Converters;
20 public const string Section =
"FileLogging";
56 ArgumentNullException.ThrowIfNull(ioManager);
57 ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
58 ArgumentNullException.ThrowIfNull(platformIdentifier);
63 return platformIdentifier.IsWindows
65 Environment.GetFolderPath(
66 Environment.SpecialFolder.CommonApplicationData,
67 Environment.SpecialFolderOption.DoNotVerify),
File logging configuration options.
string? Directory
Where log files are stored.
LogLevel MicrosoftLogLevel
The minimum Microsoft.Extensions.Logging.LogLevel to display in logs for Microsoft library sources.
string GetFullLogDirectory(IIOManager ioManager, IAssemblyInformationProvider assemblyInformationProvider, IPlatformIdentifier platformIdentifier)
Gets the evaluated log Directory.
LogLevel LogLevel
The minimum Microsoft.Extensions.Logging.LogLevel to display in logs.
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the FileLoggingConfiguration...
bool Disable
If file logging is disabled.
Interface for using filesystems.
string ConcatPath(params string[] paths)
Combines an array of strings into a path.