3using Microsoft.Extensions.Logging;
5using Newtonsoft.Json.Converters;
20 public const string Section =
"FileLogging";
66 ArgumentNullException.ThrowIfNull(ioManager);
67 ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
68 ArgumentNullException.ThrowIfNull(platformIdentifier);
70 var directoryToUse = platformIdentifier.IsWindows
71 ? Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
File logging configuration options.
const LogLevel DefaultLogLevel
Default value for LogLevel.
const LogLevel DefaultMicrosoftLogLevel
Default value for MicrosoftLogLevel.
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...
string Directory
Where log files are stored.
bool Disable
If file logging is disabled.
Interface for using filesystems.
string ConcatPath(params string[] paths)
Combines an array of strings into a path.