Skip to content

Commit

Permalink
Include properties in logger (when creating the installation)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Nov 20, 2024
1 parent 535c19f commit 08bf37c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Serilog.Sinks.ElmahIo/Sinks/ElmahIo/ElmahIOSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,14 @@ internal void CreateInstallation()
var logger = new LoggerInfo
{
Type = "Serilog.Sinks.ElmahIo",
Properties = [],
Properties =
[
new Item("FormatProvider", _options.FormatProvider?.GetType().FullName ?? ""),
new Item("BatchPostingLimit", _options.BatchPostingLimit.ToString()),
new Item("LevelSwitch", _options.LevelSwitch?.ToString() ?? ""),
new Item("MinimumLogEventLevel", _options.MinimumLogEventLevel?.ToString() ?? ""),
new Item("Period", _options.Period.ToString()),
],
ConfigFiles = [],
Assemblies =
[
Expand Down

0 comments on commit 08bf37c

Please sign in to comment.