Skip to content

Commit

Permalink
use named placeholders in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Jan 3, 2024
1 parent 9461b96 commit 7acb6d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FSharp.Analyzers.SDK/FSharp.Analyzers.SDK.Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ type Client<'TAttribute, 'TContext when 'TAttribute :> AnalyzerAttribute and 'TC
true
else
logger.LogError(
"Trying to load {0} which was built using SDK version {1}. Expect {2} instead. Assembly will be skipped.",
"Trying to load {Name} which was built using SDK version {Version}. Expect {SdkVersion} instead. Assembly will be skipped.",
name,
version,
Utils.currentFSharpAnalyzersSDKVersion
Expand All @@ -207,7 +207,7 @@ type Client<'TAttribute, 'TContext when 'TAttribute :> AnalyzerAttribute and 'TC

if shouldExclude then
logger.LogInformation(
"Excluding {0} from {1}",
"Excluding {Name} from {FullName}",
registeredAnalyzer.Name,
assembly.FullName
)
Expand All @@ -218,7 +218,7 @@ type Client<'TAttribute, 'TContext when 'TAttribute :> AnalyzerAttribute and 'TC

if shouldInclude then
logger.LogInformation(
"Including {0} from {1}",
"Including {Name} from {FullName}",
registeredAnalyzer.Name,
assembly.FullName
)
Expand Down

0 comments on commit 7acb6d2

Please sign in to comment.