Skip to content

Add loggable property#719

Merged
enotniy merged 3 commits into
developfrom
feature/add_log_property
May 26, 2026
Merged

Add loggable property#719
enotniy merged 3 commits into
developfrom
feature/add_log_property

Conversation

@enotniy
Copy link
Copy Markdown
Collaborator

@enotniy enotniy commented May 25, 2026

Add support command
adb shell setprop "log.tag.Mindbox" "${LEVEL}"

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for dynamically enabling Mindbox SDK logging via Android’s per-tag log system property (log.tag.Mindbox), allowing log verbosity to be influenced at runtime (e.g., via adb shell setprop ...).

Changes:

  • Added a setPropLevel() check using Log.isLoggable(TAG, Log.DEBUG) to allow a setprop override.
  • Updated logger methods (i/d/w/e) to log when either the configured SDK level or the setprop-derived level allows it.
  • Made Level.value immutable (varval).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/MindboxLoggerImpl.kt Adds setprop-based log enabling and integrates it into log level checks.
sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/Level.kt Makes Level.value immutable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/Level.kt
Copilot AI review requested due to automatic review settings May 26, 2026 08:40
@enotniy enotniy force-pushed the feature/add_log_property branch from 77aeece to 93ff6f9 Compare May 26, 2026 08:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/MindboxLoggerImpl.kt Outdated
Comment thread sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/MindboxLoggerImpl.kt Outdated
Comment thread sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/Level.kt
Comment thread sdk/src/main/java/cloud/mindbox/mobile_sdk/logger/Level.kt Outdated
@enotniy enotniy force-pushed the feature/add_log_property branch from 93ff6f9 to 6b5c6bc Compare May 26, 2026 11:34
@enotniy enotniy enabled auto-merge May 26, 2026 12:48
Copilot AI review requested due to automatic review settings May 26, 2026 12:52
@enotniy enotniy force-pushed the feature/add_log_property branch from 13d98b3 to 5f06f83 Compare May 26, 2026 12:52
@enotniy enotniy merged commit a927a68 into develop May 26, 2026
5 of 6 checks passed
@enotniy enotniy deleted the feature/add_log_property branch May 26, 2026 12:53
@enotniy enotniy review requested due to automatic review settings May 26, 2026 13:16
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.

3 participants