feat: add logging capabilities to ZeroBounce SDK with customizable logger and payload logging - #16
Merged
mihaiborcansst merged 1 commit intoOct 27, 2025
Conversation
…gger and payload logging
This was referenced Oct 23, 2025
Contributor
Author
|
There is another approach on PR: #15 . @vlungusst @andrei-tatomir @picobas @mihaiborcansst @vivek-karimbacheri |
Contributor
Author
|
bump |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new, configurable logging system for the ZeroBounce SDK, allowing users to integrate SDK logging with their application's logging framework and control the emission of Personally Identifiable Information (PII). The SDK is now silent by default, and logging can be enabled or disabled programmatically. Documentation has been updated to reflect these changes, and tests have been added to verify correct logger behavior.
SDK Logging System Integration
ZBLoggerand a helper classZBLoggersto adapt common logging frameworks (e.g., JUL) for SDK use. (zero-bounce-sdk/src/main/java/com/zerobounce/ZBLogger.java,zero-bounce-sdk/src/main/java/com/zerobounce/ZBLoggers.java) [1] [2]ZeroBounceSDKto use the new logger, including methods to set the logger and enable/disable payload logging, replacing all directSystem.out.printlncalls with logger invocations. (zero-bounce-sdk/src/main/java/com/zerobounce/ZeroBounceSDK.java) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Documentation Updates
README.md,documentation.md, anddocumentation_es.mdexplaining how to control SDK logging, integrate with application loggers, and avoid logging PII in production. [1] [2] [3]Testing and Verification
zero-bounce-sdk/src/test/java/com/zerobounce/ZeroBounceSDKTest.java)These changes make SDK logging safer and more flexible, allowing developers to control log output and integrate with their preferred logging frameworks.
closes: #14