Skip to content
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

[DSDK-194][FEAT][CORE] Add Logger service #22

Merged
merged 7 commits into from
Feb 14, 2024

Conversation

valpinkman
Copy link
Member

@valpinkman valpinkman commented Feb 12, 2024

📝 Description

This PR brings a basic Logger Service as well as a default implementation of a LoggerSubscriber
The Logger service will be used to display some informations based on a LogLevel.
LoggerSubscribers are passed to the Logger, and can interact with the incoming log object to change it's behavior
Log object contains more than just a message (context for example, could be use to differentiate "transport" message from "error" messages, or even "analytics" etc...)

Also in this PR, a few more tests around the existing, so we get closer to a ready for CI state whenever we want to turn on tests.

❓ Context

✅ Checklist

Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.

  • Covered by automatic tests.
  • Impact of the changes:
    • LoggerService and all it's "ecosystem"
    • Sample app (needed to add the default LoggerSubscriber)

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.

Copy link

vercel bot commented Feb 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
device-sdk-ts-sample ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 3:00pm

"!src/**/*.stub.ts",
"!src/index.ts",
Copy link
Member Author

@valpinkman valpinkman Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we particularly want to test those files, but it could be interesting to test that the imports are correctly defined ?

Copy link
Contributor

@jdabbech-ledger jdabbech-ledger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error spreading

@valpinkman valpinkman force-pushed the feature/dsdk-194-logger-module branch from de83371 to e7f5db8 Compare February 14, 2024 14:59
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, lgtm 👍

@valpinkman valpinkman merged commit 595958e into develop Feb 14, 2024
5 checks passed
@valpinkman valpinkman deleted the feature/dsdk-194-logger-module branch February 14, 2024 15:04
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.

4 participants