diff --git a/src/Conventions/DiagnosticLogger.cs b/src/Conventions/DiagnosticLogger.cs index 293fa5ecf..a64a0c914 100644 --- a/src/Conventions/DiagnosticLogger.cs +++ b/src/Conventions/DiagnosticLogger.cs @@ -29,7 +29,7 @@ public void Log(LogLevel logLevel, EventId eventId, TState state, Except _diagnosticSource.Write(GetName(logLevel), new { eventId, - state, + state = (object)state, exception, message = formatter(state, exception) });