Skip to content

Commit

Permalink
Invert renderMessage check
Browse files Browse the repository at this point in the history
  • Loading branch information
LordZeroHour committed Mar 19, 2024
1 parent d1bce24 commit b7cd9f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void Format(LogEvent logEvent, TextWriter output)
JsonValueFormatter.WriteQuotedJsonString(logEvent.MessageTemplate.Text, output);
}

if (!_renderMessage)
if (_renderMessage)
{
output.Write(",\"RenderedMessage\":");
JsonValueFormatter.WriteQuotedJsonString(logEvent.RenderMessage(_formatProvider), output);
Expand Down

0 comments on commit b7cd9f7

Please sign in to comment.