Skip to content

Commit

Permalink
Change AdditionalFieldsFactory to return an enumerable.
Browse files Browse the repository at this point in the history
A dictionary can still be used, but this allows callers to return an array of key/value pairs for reduced overhead.
  • Loading branch information
ejball committed Feb 6, 2023
1 parent 4a3d45d commit 08ba215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gelf.Extensions.Logging/GelfLoggerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class GelfLoggerOptions
/// <summary>
/// Additional fields computed based on raw log data.
/// </summary>
public Func<GelfLogContext, Dictionary<string, object?>>? AdditionalFieldsFactory { get; set; }
public Func<GelfLogContext, IEnumerable<KeyValuePair<string, object?>>>? AdditionalFieldsFactory { get; set; }

/// <summary>
/// Headers used when sending logs via HTTP(S).
Expand Down

0 comments on commit 08ba215

Please sign in to comment.