In the Serilog output in a file, I see that the default is
{
"Timestamp": "2016-05-28T21:21:59.0932348+08:00",
"Level": "Information",
"MessageTemplate": "Processed {@Number} records in {@Time} ms",
"Properties": {
"Number": 500,
"Time": 120
}
}
Is there a way to remove the Timestamp, level, messagetemplate, and properties so that I"m left with this only
{
"Number": 500,
"Time": 120
}
The Log.Logger is assigned as such
Log.Logger = new LoggerConfiguration()
.WriteTo.Sink(new FileSink(ConfigurationManager.AppSettings["serilogPath"], new JsonFormatter(), null))
.CreateLogger();
Thanks