Fixed message formatting on file targets

This commit is contained in:
Zafer Balkan
2024-11-20 15:47:54 +02:00
parent c7b36a7b84
commit b4d90fca2b

View File

@@ -38,7 +38,7 @@ namespace LogExporter.Strategy
public FileExportStrategy(string filePath)
{
_sender = new LoggerConfiguration().WriteTo.File(filePath, outputTemplate:"{Message}{Newline}").CreateLogger();
_sender = new LoggerConfiguration().WriteTo.File(filePath, outputTemplate: "{Message:lj}{Newline}").CreateLogger();
}
#endregion constructor