diff --git a/DotBased.Logging.MEL/BasedLogger.cs b/DotBased.Logging.MEL/BasedLogger.cs index 8ea49a4..6c0f422 100644 --- a/DotBased.Logging.MEL/BasedLogger.cs +++ b/DotBased.Logging.MEL/BasedLogger.cs @@ -23,11 +23,15 @@ public class BasedLogger : Microsoft.Extensions.Logging.ILogger private LogCapsule ConstructCapsule(LogSeverity severity, EventId eventId, TState state, Exception? exception, Func formatter) { //TODO: Extract parameters & format + var msgTemplate = string.Empty; if (state is IEnumerable> stateEnum) { foreach (var prop in stateEnum) { - + if (prop is { Key: "{OriginalFormat}", Value: string propValueString }) + { + msgTemplate = propValueString; + } } }