LogRedactor

Detects and redacts sensitive substrings (passphrases, key material, fingerprints) and provides a hardened Timber.Tree for release builds.

Functions

Link copied to clipboard
fun createReleaseTree(): Timber.Tree

Builds a Timber.Tree for release builds that logs only error-level messages and redacts them before emitting to logcat.

Link copied to clipboard

Returns true when message matches any known secret pattern.

Link copied to clipboard
fun redact(message: String): String

Replaces the whole message with [REDACTED] when it looks sensitive.