Skip to content

feat(core): implement cross-platform logging system - #32

Closed
abdo-essam wants to merge 3 commits into
developfrom
feature/implement-cross-platform-logging-system
Closed

abdo-essam wants to merge 3 commits into
developfrom
feature/implement-cross-platform-logging-system

Conversation

@abdo-essam

Copy link
Copy Markdown
Owner

No description provided.

Introduce a unified logging infrastructure including ComposeShieldLogger, LogLevel, and platform-specific implementations for Android (Logcat) and iOS (NSLog). This system allows developers to monitor security-related events and diagnostic information across the library.

- Add ComposeShieldLogger interface and ComposeShieldLoggers factory
- Implement androidLogcat and osLog platform loggers
- Integrate ShieldLog internal utility with atomic references
- Add comprehensive unit tests for log filtering and dispatching
@abdo-essam abdo-essam self-assigned this Aug 31, 2026

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR successfully implements a cross-platform logging system with clean architecture and proper thread-safety. The implementation includes:

  • Well-defined logger interface with level-based filtering
  • Platform-specific implementations (Android Logcat, iOS NSLog)
  • Thread-safe internal logger holder using AtomicReference
  • Comprehensive test coverage including error scenarios
  • Proper migration from println statements to structured logging

The code is production-ready with no blocking issues identified.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

Improve code readability in the logger test file by sorting imports alphabetically and reformatting long parameter lists.
Update the composeshield.klib.api file to include the new ComposeShieldLogLevel enum entries. This aligns the public API surface with the cross-platform logging system implementation.
@abdo-essam abdo-essam closed this Sep 3, 2026
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