diff --git a/Directory.Build.props b/Directory.Build.props
index 3ffc15a..290a6a0 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -30,8 +30,8 @@
-
-
+
+
diff --git a/Frank.PulseFlow.Logging/LogPulse.cs b/Frank.PulseFlow.Logging/LogPulse.cs
index 118a3c4..86a304b 100644
--- a/Frank.PulseFlow.Logging/LogPulse.cs
+++ b/Frank.PulseFlow.Logging/LogPulse.cs
@@ -5,7 +5,7 @@ namespace Frank.PulseFlow.Logging;
///
/// Represents a log pulse.
///
-public class LogPulse : BasePulse
+public sealed class LogPulse : BasePulse
{
///
/// Gets the log level of the application.
@@ -55,13 +55,15 @@ public class LogPulse : BasePulse
/// The exception associated with the log event, if any.
/// The name of the log category.
/// The log message.
- public LogPulse(LogLevel logLevel, EventId eventId, Exception? exception, string categoryName, string message)
+ ///
+ public LogPulse(LogLevel logLevel, EventId eventId, Exception? exception, string categoryName, string message, IReadOnlyList>? state)
{
LogLevel = logLevel;
EventId = eventId;
Exception = exception;
CategoryName = categoryName;
Message = message;
+ State = state;
}
///
diff --git a/Frank.PulseFlow.Logging/PulseFlowLogger.cs b/Frank.PulseFlow.Logging/PulseFlowLogger.cs
index 98be93f..22b67e6 100644
--- a/Frank.PulseFlow.Logging/PulseFlowLogger.cs
+++ b/Frank.PulseFlow.Logging/PulseFlowLogger.cs
@@ -35,7 +35,7 @@ public PulseFlowLogger(string categoryName, IConduit conduit, IOptionsMonitorThe exception associated with the log entry.
/// A function that formats the log message.
public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter)
- => _conduit.SendAsync(new LogPulse(logLevel, eventId, exception, _categoryName, formatter.Invoke(state, exception))).GetAwaiter().GetResult();
+ => _conduit.SendAsync(new LogPulse(logLevel, eventId, exception, _categoryName, formatter.Invoke(state, exception), state as IReadOnlyList>)).GetAwaiter().GetResult();
///
/// Checks if logging is enabled for the specified log level.