public string FormatMessage(ILogMessageEntry entry) { //return $"{entry.Timestamp}\t{entry.Message}"; if (!string.IsNullOrWhiteSpace(entry.Message)) { //if (entry.Message.TrimStart().StartsWith("{")) //{ // return $"{entry.Message}"; //} //else //{ return(LoggingExtensions.GetJson(entry)); //return "{\"message\": \"" + entry.Message.Replace("\"", @"\\""") + "\"}"; //} } return(""); }