Skip to content

Commit faa0999

Browse files
author
Stan van Rooy
committed
feat: support logging enum values
1 parent 28cdc36 commit faa0999

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ParseableSink.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ private Dictionary<string, object> CreateDictionary(LogEvent logEvent)
9191
case DateTimeOffset dateTimeOffsetValue:
9292
properties.Add(property.Key, dateTimeOffsetValue.ToString("o"));
9393
break;
94+
case Enum enumValue:
95+
properties.Add(property.Key, enumValue.ToString());
96+
break;
9497
}
9598
}
9699

0 commit comments

Comments
 (0)