From 392a0ee51fef25e05c2a13e732f8177fae4a525f Mon Sep 17 00:00:00 2001 From: Pavel_Sorokin Date: Fri, 18 Nov 2022 13:10:23 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Liner/Liner/FormMapWithSetShips.cs | 2 +- Liner/Liner/Liner.csproj | 1 + Liner/Liner/Program.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Liner/Liner/FormMapWithSetShips.cs b/Liner/Liner/FormMapWithSetShips.cs index 6f51468..40b4225 100644 --- a/Liner/Liner/FormMapWithSetShips.cs +++ b/Liner/Liner/FormMapWithSetShips.cs @@ -203,9 +203,9 @@ namespace Liner } if (MessageBox.Show($"Удалить карту {ListBoxMaps.SelectedItem}?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { + _logger.LogInformation("Удалена карта {0}", ListBoxMaps.SelectedItem?.ToString() ?? string.Empty); _mapsCollection.DelMap(ListBoxMaps.SelectedItem?.ToString() ?? string.Empty); ReloadMaps(); - _logger.LogInformation("Удалена карта {0}", ListBoxMaps.SelectedItem?.ToString() ?? string.Empty); } } diff --git a/Liner/Liner/Liner.csproj b/Liner/Liner/Liner.csproj index 5a83827..37fe1c2 100644 --- a/Liner/Liner/Liner.csproj +++ b/Liner/Liner/Liner.csproj @@ -19,6 +19,7 @@ + diff --git a/Liner/Liner/Program.cs b/Liner/Liner/Program.cs index 07ff9bc..f799e48 100644 --- a/Liner/Liner/Program.cs +++ b/Liner/Liner/Program.cs @@ -28,7 +28,7 @@ namespace Liner services.AddSingleton(); var serilogLogger = new LoggerConfiguration() - .WriteTo.File("Log.txt") + .WriteTo.RollingFile("Logs\\log.txt") .CreateLogger(); services.AddLogging(builder =>