This commit is contained in:
2023-07-13 12:01:34 +02:00
parent bfb2b8a999
commit 6f158901a2
3 changed files with 38 additions and 13 deletions

View File

@@ -37,7 +37,7 @@ namespace EonaCat.Logger.EonaCatCoreLogger.Internal
throw new ArgumentOutOfRangeException(nameof(loggerOptions.FlushPeriod), $"{nameof(loggerOptions.FlushPeriod)} must be longer than zero.");
}
if (options is FileLoggerOptions fileLoggerOptions)
if (options.Value is FileLoggerOptions fileLoggerOptions)
{
UseLocalTime = fileLoggerOptions.UseLocalTime;
}