Skip to content

[Code Quality] ILogger.cs — Name collides with Microsoft.Extensions.Logging.ILogger #677

@Christophe-Rogiers

Description

@Christophe-Rogiers

Severity: Info

File: src/Servy.Core/Logging/ILogger.cs

Description:
The custom Servy.Core.Logging.ILogger collides with Microsoft.Extensions.Logging.ILogger. Any file referencing both needs fully qualified names. Third-party libraries (OpenTelemetry, Serilog MEL sinks) cannot accept this type without an adapter.

Suggested fix:
Rename to IServyLogger or IAppLogger to eliminate the conflict.

Metadata

Metadata

Assignees

Labels

refactorChanges that improve structure, readability, or maintainability without altering external behavior.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions