-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUMM-2754: Create implementation of InternalLogger #1155
RUMM-2754: Create implementation of InternalLogger #1155
Conversation
737fb93
to
cf0fddb
Compare
Codecov Report
@@ Coverage Diff @@
## feature/sdkv2 #1155 +/- ##
=================================================
+ Coverage 82.28% 82.31% +0.03%
=================================================
Files 353 354 +1
Lines 11796 11822 +26
Branches 2007 2012 +5
=================================================
+ Hits 9706 9731 +25
- Misses 1465 1468 +3
+ Partials 625 623 -2
|
attributes: Map<String, Any?> | ||
) { | ||
when (target) { | ||
// TODO RUMM-2764 we should remove sdkLogger, devLogger and telemetry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
error: Throwable?, | ||
attributes: Map<String, Any?> | ||
) { | ||
devLogger.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't want to pass sdkLogger
, devLogger
and telemetry
as dependencies or the problem is that they cannot be yet initialized ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, don't want to reference them in the constructor. Anyway it has no real benefit (other than mocking).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work !
What does this PR do?
Simple implementation of
InternalLogger
interface which forwards logs according to the target specified.Task RUMM-2764 created to start using it in the codebase, not a part of SDK v2 goals.
Review checklist (to be filled by reviewers)