diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 33dbe82..12eeecc 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -9,7 +9,7 @@ "build", "${workspaceFolder}/SharpFM.sln", "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" + "/consoleloggerparameters:NoSummary;ForceNoAlign" ], "problemMatcher": "$msCompile" }, @@ -21,7 +21,7 @@ "publish", "${workspaceFolder}/SharpFM.sln", "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" + "/consoleloggerparameters:NoSummary;ForceNoAlign" ], "problemMatcher": "$msCompile" }, diff --git a/SharpFM.App/ViewModels/MainWindowViewModel.cs b/SharpFM.App/ViewModels/MainWindowViewModel.cs index 8b7e7d7..f5e4dcd 100644 --- a/SharpFM.App/ViewModels/MainWindowViewModel.cs +++ b/SharpFM.App/ViewModels/MainWindowViewModel.cs @@ -111,7 +111,7 @@ public void NewEmptyItem() } catch (Exception e) { - _logger.LogCritical("Error creating new Clip.", e); + _logger.LogCritical(e, "Error creating new Clip."); } } @@ -137,7 +137,7 @@ public void CopyAsClass() } catch (Exception e) { - _logger.LogCritical("Error Copying as Class.", e); + _logger.LogCritical(e, "Error Copying as Class."); } } @@ -180,7 +180,7 @@ public async Task PasteFileMakerClipData() } catch (Exception e) { - _logger.LogCritical("Error translating FileMaker blob to Xml.", e); + _logger.LogCritical(e, "Error translating FileMaker blob to Xml."); } } @@ -206,7 +206,7 @@ public async Task CopySelectedToClip() } catch (Exception e) { - _logger.LogCritical("Error returning the selected Clip FileMaker blob format.", e); + _logger.LogCritical(e, "Error returning the selected Clip FileMaker blob format."); } }