Privacy and console logs
This page documents Bugsee Flutter SDK 9.x (bugsee_flutter 9.x), the current stable release. The new 10.x SDK is a rewrite for the Bugsee 7.x native SDKs and is in beta, not yet published to pub.dev: see Migrating from 9.x to 10.x to evaluate it, or the 10.x overview.
Disabling log collection
Console log collection can be disabled completely using captureLogs launch option. See configuration for more info.
Sanitizing console logs
Bugsee automatically captures all standard application console logs, but they can be protected as well.
For every event to be recorded, Bugsee will call your method and provide you with a BugseeLogEvent object. It is your method's responsibility to clean up all user identifiable data from that structure and return a sanitized event back
Providing handler
You should pass a callback method to Bugsee.setLogFilter().
Future<BugseeLogEvent> onBugseeLogEvent(BugseeLogEvent logEvent) {
logEvent.text = "Filtered: " + logEvent.text;
return Future.value(logEvent);
}
Bugsee.setLogFilter(onBugseeLogEvent);