Skip to content

Commit

Permalink
Merge pull request #75 from ejball/enumerable-fields
Browse files Browse the repository at this point in the history
Change AdditionalFieldsFactory to return an enumerable of key/value pairs.
  • Loading branch information
mattwcole authored Feb 13, 2023
2 parents 4a3d45d + 08ba215 commit 99ac2e9
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 99ac2e9

Please sign in to comment.