diff --git a/FileLiberator/UNTESTED/IProcessableExt.cs b/FileLiberator/UNTESTED/IProcessableExt.cs index e23419a2..f782d1b2 100644 --- a/FileLiberator/UNTESTED/IProcessableExt.cs +++ b/FileLiberator/UNTESTED/IProcessableExt.cs @@ -46,7 +46,7 @@ namespace FileLiberator private static async Task processBookAsync(IProcessable processable, LibraryBook libraryBook) { - Serilog.Log.Information("Begin " + nameof(processBookAsync) + " {@DebugInfo}", new + Serilog.Log.Logger.Information("Begin " + nameof(processBookAsync) + " {@DebugInfo}", new { libraryBook.Book.Title, libraryBook.Book.AudibleProductId, diff --git a/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs b/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs index b6ec10cc..67db45e2 100644 --- a/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs +++ b/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs @@ -10,7 +10,7 @@ namespace LibationWinForms.BookLiberation { public static async Task BackupSingleBookAsync(string productId, EventHandler completedAction = null) { - Serilog.Log.Information("Begin " + nameof(BackupSingleBookAsync) + " {@DebugInfo}", new { productId }); + Serilog.Log.Logger.Information("Begin " + nameof(BackupSingleBookAsync) + " {@DebugInfo}", new { productId }); var backupBook = getWiredUpBackupBook(completedAction); @@ -22,7 +22,7 @@ namespace LibationWinForms.BookLiberation public static async Task BackupAllBooksAsync(EventHandler completedAction = null) { - Serilog.Log.Information("Begin " + nameof(BackupAllBooksAsync)); + Serilog.Log.Logger.Information("Begin " + nameof(BackupAllBooksAsync)); var backupBook = getWiredUpBackupBook(completedAction); @@ -100,7 +100,7 @@ namespace LibationWinForms.BookLiberation public static async Task BackupAllPdfsAsync(EventHandler completedAction = null) { - Serilog.Log.Information("Begin " + nameof(BackupAllPdfsAsync)); + Serilog.Log.Logger.Information("Begin " + nameof(BackupAllPdfsAsync)); var downloadPdf = getWiredUpDownloadPdf(completedAction); diff --git a/LibationWinForms/UNTESTED/Form1.cs b/LibationWinForms/UNTESTED/Form1.cs index 51aa11fc..3c4fa133 100644 --- a/LibationWinForms/UNTESTED/Form1.cs +++ b/LibationWinForms/UNTESTED/Form1.cs @@ -335,7 +335,7 @@ namespace LibationWinForms } catch (Exception ex) { - Serilog.Log.Error(ex, "Error attempting to export library"); + Serilog.Log.Logger.Error(ex, "Error attempting to export library"); MessageBox.Show("Error attempting to export your library. Error message:\r\n\r\n" + ex.Message, "Error exporting", MessageBoxButtons.OK, MessageBoxIcon.Error); } }