Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added stringification support #160

Merged
merged 4 commits into from
Dec 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pass null instead of text "null"
  • Loading branch information
bicj-leica committed Nov 29, 2019
commit b201aba786de99ca6a6f577068a002e2d04f8d44
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
}
else if (property.Key.StartsWith("$"))
{
if (logger.BindProperty(property.Key.Substring(1), property.Value?.ToString() ?? "null", true, out var stringified))
if (logger.BindProperty(property.Key.Substring(1), property.Value?.ToString(), true, out var stringified))
properties.Add(stringified);
}
else
Expand Down