From b4d90fca2bce5607d9a9af15914f65716156544b Mon Sep 17 00:00:00 2001 From: Zafer Balkan Date: Wed, 20 Nov 2024 15:47:54 +0200 Subject: [PATCH] Fixed message formatting on file targets --- Apps/LogExporterApp/Strategy/FileExportStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apps/LogExporterApp/Strategy/FileExportStrategy.cs b/Apps/LogExporterApp/Strategy/FileExportStrategy.cs index ed3652d0..cedb65f4 100644 --- a/Apps/LogExporterApp/Strategy/FileExportStrategy.cs +++ b/Apps/LogExporterApp/Strategy/FileExportStrategy.cs @@ -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