Skip to content

Commit edfd0f4

Browse files
authored
fix: logger parm order (#50)
1 parent 99a53e7 commit edfd0f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build",
1010
"${workspaceFolder}/SharpFM.sln",
1111
"/property:GenerateFullPaths=true",
12-
"/consoleloggerparameters:NoSummary"
12+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
1313
],
1414
"problemMatcher": "$msCompile"
1515
},
@@ -21,7 +21,7 @@
2121
"publish",
2222
"${workspaceFolder}/SharpFM.sln",
2323
"/property:GenerateFullPaths=true",
24-
"/consoleloggerparameters:NoSummary"
24+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
2525
],
2626
"problemMatcher": "$msCompile"
2727
},

SharpFM.App/ViewModels/MainWindowViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void NewEmptyItem()
111111
}
112112
catch (Exception e)
113113
{
114-
_logger.LogCritical("Error creating new Clip.", e);
114+
_logger.LogCritical(e, "Error creating new Clip.");
115115
}
116116
}
117117

@@ -137,7 +137,7 @@ public void CopyAsClass()
137137
}
138138
catch (Exception e)
139139
{
140-
_logger.LogCritical("Error Copying as Class.", e);
140+
_logger.LogCritical(e, "Error Copying as Class.");
141141
}
142142
}
143143

@@ -180,7 +180,7 @@ public async Task PasteFileMakerClipData()
180180
}
181181
catch (Exception e)
182182
{
183-
_logger.LogCritical("Error translating FileMaker blob to Xml.", e);
183+
_logger.LogCritical(e, "Error translating FileMaker blob to Xml.");
184184
}
185185
}
186186

@@ -206,7 +206,7 @@ public async Task CopySelectedToClip()
206206
}
207207
catch (Exception e)
208208
{
209-
_logger.LogCritical("Error returning the selected Clip FileMaker blob format.", e);
209+
_logger.LogCritical(e, "Error returning the selected Clip FileMaker blob format.");
210210
}
211211
}
212212

0 commit comments

Comments
 (0)