-
-
Notifications
You must be signed in to change notification settings - Fork 216
Logging
Faded edited this page Mar 24, 2026
·
1 revision
FadCam uses a privacy-aware logging wrapper FLog for user-facing debug logs.
- Full device logcat access is restricted on Android; in-app logs must be explicit.
- We want a single, safe way to capture logs in
FADCAM_debug.htmlwithout leaking sensitive data.
- Writes to both
android.util.Log(logcat) and the in-app HTML log (com.fadcam.Log). - Applies privacy redaction before writing:
- URLs →
[REDACTED_URL] - Token-like strings →
REDACTED - File paths →
[REDACTED_PATH]
- URLs →
- Supports a custom redactor hook for additional scrubbing.
FLog.d("Tag", "Starting recording...");
FLog.e("Tag", "Failed to open camera: " + reason);
FLog.e("Tag", "Crash", exception);- Existing
com.fadcam.Logcalls remain valid and unchanged. -
FLogis recommended for any user-facing debug logging to ensure privacy.