Skip to main content

Privacy and console logs (Beta)

Disabling log collection​

Console log collection can be disabled completely using the captureLogs launch option. See configuration for more info.

Sanitizing console logs​

Bugsee automatically captures all standard application console logs, but they can be filtered before recording.

For every log event to be recorded, Bugsee calls your filter and provides a BugseeLogEvent object. Clean up user-identifiable data and return a sanitized event. Return null to suppress the event entirely.

Bugsee.setLogFilter { logEvent ->
logEvent?.let {
it.message = it.message.replace(Regex("\\b[\\w.]+@[\\w.]+\\b"), "[REDACTED]")
it
}
}
Found an issue, typo, or wrong statement on this page? Report it now →