Skip to content

Commit

Permalink
fix an issue where the logs are being written to output with newline.
Browse files Browse the repository at this point in the history
  • Loading branch information
terencet committed Oct 26, 2016
1 parent 8e47dd0 commit 3726d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void Sanitize(LogEvent logEvent, TextWriter output)

var jsonObject = JsonConvert.DeserializeObject<dynamic>(tempTextWriter.GetStringBuilder().ToString());

var processedLogEvent = _processor.Process(jsonObject, _sanitizingFormatRules);
var processedLogEvent = JsonConvert.SerializeObject(_processor.Process(jsonObject, _sanitizingFormatRules));

output.WriteLine(processedLogEvent);
}
Expand Down
4 changes: 2 additions & 2 deletions src/SeriLog.LogSanitizingFormatter/project.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"title": "Serilog.LogSanitizingFormatter",
"version": "1.0.0",
"version": "1.0.1",
"owners": [ "PageUp" ],
"authors": [ "PageUp" ],
"description": "A log sanitizing formatter to scrub sensitive data from logs",
"projectUrl": "https://github.com/PageUpPeopleOrg/SeriLog.LogSanitizingFormatter",
"copyright": "© 2016 PageUp",
"tags": [ "serilog", "logsanitizingformatter", "pageup" ],
"tags": [ "serilog", "logsanitizingformatter", "pageup", "obfuscate", "clean log" ],
"buildOptions": {
"debugType": "portable"
},
Expand Down

0 comments on commit 3726d22

Please sign in to comment.