Skip to content

Commit

Permalink
random
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Dominguez committed Feb 4, 2020
1 parent 18698e5 commit c2eecad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,4 @@ $RECYCLE.BIN/
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
/.ionide
4 changes: 2 additions & 2 deletions src/Honeycomb.Serilog.Sink/Formatters/RawJsonFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void FormatContent(LogEvent logEvent, TextWriter output)
if (output == null) throw new ArgumentNullException(nameof(output));

output.Write($"{{\"time\":\"{logEvent.Timestamp:O}\",");
output.Write($"\"data\":{{");
output.Write("\"data\":{");
output.Write($"\"level\":\"{logEvent.Level}\"");
output.Write(",\"messageTemplate\":");
JsonValueFormatter.WriteQuotedJsonString(logEvent.MessageTemplate.Text, output);
Expand All @@ -45,7 +45,7 @@ public static void FormatContent(LogEvent logEvent, TextWriter output)

private static void WriteProperties(IReadOnlyDictionary<string, LogEventPropertyValue> properties, TextWriter output)
{
var precedingDelimiter = ",";
const string precedingDelimiter = ",";
foreach (var property in properties)
{
output.Write(precedingDelimiter);
Expand Down

0 comments on commit c2eecad

Please sign in to comment.