Skip to content

Commit 92cdca9

Browse files
authored
Merge pull request #145 from twaalewijn/log-file-name
2 parents 824bf7a + 4e0b719 commit 92cdca9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/AzureSignTool/SignCommand.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public int OnValidationError(ValidationResult result, CommandLineApplication<Sig
191191
private void ConfigureLogging(ILoggingBuilder builder)
192192
{
193193
builder.AddConsole(console => {
194+
console.IncludeScopes = true;
194195
console.DisableColors = !Colors;
195196
});
196197
builder.SetMinimumLevel(LogLevel);
@@ -294,11 +295,11 @@ public async Task<int> OnExecuteAsync(CommandLineApplication app, IConsole conso
294295
}
295296
using (var loopScope = logger.BeginScope("File: {Id}", filePath))
296297
{
297-
logger.LogInformation($"Signing file.");
298+
logger.LogInformation("Signing file.");
298299

299300
if (SkipSignedFiles && IsSigned(filePath))
300301
{
301-
logger.LogInformation($"Skipping already signed file.");
302+
logger.LogInformation("Skipping already signed file.");
302303
return (state.succeeded + 1, state.failed);
303304
}
304305

@@ -315,7 +316,7 @@ public async Task<int> OnExecuteAsync(CommandLineApplication app, IConsole conso
315316

316317
if (result == S_OK)
317318
{
318-
logger.LogInformation($"Signing completed successfully.");
319+
logger.LogInformation("Signing completed successfully.");
319320
return (state.succeeded + 1, state.failed);
320321
}
321322
else

0 commit comments

Comments
 (0)