Skip to content

Add Logging Proxy for AuthRepository with Koin Integration - #108

Open
NadaMJARRAH wants to merge 2 commits into
feature/logging-rootfrom
feature/auth-logging
Open

Add Logging Proxy for AuthRepository with Koin Integration#108
NadaMJARRAH wants to merge 2 commits into
feature/logging-rootfrom
feature/auth-logging

Conversation

@NadaMJARRAH

@NadaMJARRAH NadaMJARRAH commented May 16, 2025

Copy link
Copy Markdown
Contributor

This PR improves system observability and debuggability by logging authentication events. It keeps the separation of concerns clean by using the Proxy Pattern instead of bloating use cases with logging logic.

This is what we did in this PR:

  • Introduced AuthRepositoryLoggingProxy to wrap the original AuthRepositoryImpl implementation.
  • The proxy intercepts login and createUser operations to log authentication-related events using LogRepository.
  • Ensured integration with Koin DI by updating the single<AuthRepository> binding to inject the proxy instead of the raw implementation.

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