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

feat: add debuglogger to confidence #144

Merged
merged 9 commits into from
Jun 28, 2024
Merged

feat: add debuglogger to confidence #144

merged 9 commits into from
Jun 28, 2024

Conversation

nickybondarenko
Copy link
Contributor

@nickybondarenko nickybondarenko commented Jun 25, 2024

This PR introduces a DebugLogger to the Confidence SDK. It is utilising OSLog, which is Apple's recommended logging lib that is a replacement for print and NSLog.
DebugLogger can be enabled when creating an initial Confidence instance, but is set to nil as a default. When enabled, it logs some of the pivotal processes of Confidence: event sending, fetching and activating flags, errors.

Sources/Confidence/DebugLogger.swift Outdated Show resolved Hide resolved
Sources/Confidence/DebugLogger.swift Outdated Show resolved Hide resolved
Sources/Confidence/DebugLogger.swift Outdated Show resolved Hide resolved
Sources/Confidence/DebugLogger.swift Show resolved Hide resolved
@nickybondarenko nickybondarenko marked this pull request as ready for review June 27, 2024 13:07
Copy link

@andreas-karlsson andreas-karlsson left a comment

Choose a reason for hiding this comment

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

LGTM

@nicklasl nicklasl self-requested a review June 28, 2024 11:22
@nicklasl nicklasl merged commit c8fe939 into main Jun 28, 2024
3 checks passed
@nicklasl nicklasl deleted the debug-for-confidence branch June 28, 2024 11:23
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.

None yet

3 participants