diff --git a/src/Commons/Logging/BatchingLogger.cs b/src/Commons/Logging/BatchingLogger.cs index 677545991..b2d63d52a 100644 --- a/src/Commons/Logging/BatchingLogger.cs +++ b/src/Commons/Logging/BatchingLogger.cs @@ -19,9 +19,10 @@ public bool IsEnabled(LogLevel logLevel) return loggerProvider.IsEnabled; } - private void Log(DateTimeOffset timestamp, LogLevel logLevel, EventId eventId, TState state, Exception exception, + public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func formatter) { + var timestamp = DateTimeOffset.Now; if (!IsEnabled(logLevel)) { return; @@ -48,10 +49,4 @@ private void Log(DateTimeOffset timestamp, LogLevel logLevel, EventId ev LogLevel = logLevel }); } - - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, - Func formatter) - { - Log(DateTimeOffset.Now, logLevel, eventId, state, exception, formatter); - } } \ No newline at end of file