Skip to content

Commit

Permalink
Merge pull request #16 from EvilBeaver/EvilBeaver-patch-15
Browse files Browse the repository at this point in the history
closes #15 Неверная дата в логе
  • Loading branch information
akpaevj authored May 17, 2021
2 parents e3603bd + 50a516f commit 389bd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OneSTools.EventLog.Exporter.Core/FileLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
{
var levelName = Enum.GetName(typeof(LogLevel), logLevel);

var message = $"{DateTime.Now:yyyy-MM-hh HH:mm:ss.fff} | {levelName} | {_categoryName}[{eventId.Id}]\n\t{ formatter(state, exception)}";
var message = $"{DateTime.Now:yyyy-MM-dd HH:mm:ss.fff} | {levelName} | {_categoryName}[{eventId.Id}]\n\t{ formatter(state, exception)}";

lock (Locker)
File.AppendAllText(_path, message + Environment.NewLine);
Expand Down

0 comments on commit 389bd6c

Please sign in to comment.