Use standard Microsoft logging in Kademlia#12170
Conversation
|
Claude finished @flcl42's task in 4m 8s —— View job Review: PR #12170 — Use standard Microsoft logging in Kademlia
Overall this is a clean, well-scoped refactor. The two genuinely good fixes here are worth calling out: 🟠 Medium — Kademlia unit/simulation test containers no longer wire logging
Autofac treats the unresolved optional param as
Mirror the production wiring in both test containers: .AddSingleton<ILoggerFactory, ILogManager>(static lm => new NethermindLoggerFactory(lm))🟢 Low — global
|
6c6b2a0 to
b78edf2
Compare
EVM Opcode Benchmark DiffAggregated runs: base=3, pr=3 No significant regressions or improvements detected. |
|
@claude review |
|
Claude finished @flcl42's task in 2m 37s —— View job Review: PR #12170 — Use standard Microsoft logging in Kademlia
This is a clean, well-scoped refactor. I verified the items that could have gone wrong in this kind of refactor:
🟢 Low — lost trace/debug interpolation coverage in the Kademlia test containers
.AddSingleton<ILoggerFactory, ILogManager>(static lm => new NethermindLoggerFactory(lm))(requires the 🟢 Low —
|
|
Claude finished @flcl42's task in 2m 31s —— View job Review: PR #12170 — Use standard Microsoft logging in Kademlia
Confirming the conclusion of the two earlier passes after re-verifying against the current branch tip. This is a clean, well-scoped refactor: Independently re-verified:
🟢 Low — lost trace/debug interpolation coverage in Kademlia test containers
🟢 Nit —
|
Want to reuse kademilia in libp2p where it can be included only as nuget package. Nethermind.Logging is the only dependency it has and I suspect publishing nethermind.kademlia will require publishing nethermind.logging. So this pr is an attempt to make it simpler to maintain(one nuget instead of two) and use by third parties. (I cannot include it as the source code at least because of the license clash + it would be ugly) |
Changes
Nethermind.Kademlia's directNethermind.Loggingdependency withMicrosoft.Extensions.Logging.Abstractionsand requiredILoggerFactoryinjection.Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Nethermind.Kademliano longer has project references orNethermind.Loggingusage.src/testsare missing in this checkout.Documentation
Requires documentation update
Requires explanation in Release Notes