Skip to content

Feature/2 logging abstractions - #14

Merged
dgates82 merged 2 commits into
mainfrom
feature/2-logging-abstractions
Jul 17, 2026
Merged

Feature/2 logging abstractions#14
dgates82 merged 2 commits into
mainfrom
feature/2-logging-abstractions

Conversation

@dgates82

Copy link
Copy Markdown
Owner

Adds optional ILogger support (default NullLogger) across SecretsManagerService and
SecretsManagerServiceFactory — cache hit/miss, refresh, invalidate, local fallback usage,
retry attempts, and fetch/deserialize failures. Backward-compatible with 0.1.x consumers.

Includes a follow-up fix downgrading Microsoft.Extensions.Logging.Abstractions to 8.x to
resolve a version conflict with NLog.Extensions.Logging in downstream consumers.

Closes #2

dgates82 added 2 commits July 16, 2026 13:18
- add ILogger param (default NullLogger) to both SecretsManagerService constructors
- log cache hit/miss, refresh, invalidate, local fallback usage, and fetch/deserialize failures
- wire OnRetry into the Polly pipeline for retry-attempt warnings
- add ILogger overload to SecretsManagerServiceFactory.Create
The library was referencing 10.x, the latest available when logging
support was added. NLog.Extensions.Logging 6.1.4 (used in
MvcExample.Infrastructure) resolves to 8.x, so referencing both
together in the same dependency graph produced a version conflict.

Microsoft.Extensions.Logging.Abstractions' public surface has been
stable across 8.x-10.x, so downgrading costs nothing functionally
and is the more correct choice regardless of this specific conflict:
a library should reference the oldest version that has the APIs it
needs, not the newest available at write time, so it imposes the
loosest possible constraint on consumers' own dependency graphs.
@dgates82 dgates82 linked an issue Jul 17, 2026 that may be closed by this pull request
5 tasks
@dgates82
dgates82 merged commit 3d102e3 into main Jul 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add logging via Microsoft.Extensions.Logging.Abstractions

1 participant