Skip to content

refactor: replace SDKLoggerApi with ILogger interface#1226

Draft
alexs-mparticle wants to merge 2 commits intomasterfrom
refactor/logger-interface
Draft

refactor: replace SDKLoggerApi with ILogger interface#1226
alexs-mparticle wants to merge 2 commits intomasterfrom
refactor/logger-interface

Conversation

@alexs-mparticle
Copy link
Collaborator

Summary

  • Defines proper ILogger and IConsoleLogger interfaces in logger.ts
  • Logger class now explicitly implements ILogger; ConsoleLogger implements IConsoleLogger
  • All consumers (audienceManager, batchUploader, roktManager) updated to import ILogger from logger.ts
  • SDKLoggerApi retained as a deprecated type alias in sdkRuntimeModels.ts for backwards compatibility

Test plan

  • All 12 logger unit tests pass
  • Dev build compiles successfully
  • Full test suite verification

🤖 Generated with Claude Code

Define proper ILogger and IConsoleLogger interfaces in logger.ts and
have Logger/ConsoleLogger implement them directly. SDKLoggerApi is
retained as a deprecated type alias for backwards compatibility.

Updates all consumers (audienceManager, batchUploader, roktManager)
and tests to import ILogger from logger.ts.
Remove the deprecated SDKLoggerApi type alias from sdkRuntimeModels.ts.
All consumers have already been migrated to ILogger.
@sonarqubecloud
Copy link

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.

1 participant