-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Presently, debug output from the FlutterSDK is somewhat difficult to use.
-
Debug messages from the SwiftSDK are not visible in the Flutter debug console unless the app has been started directly from Xcode. Furthermore, such messages are not usually detectable by Flutter logging frameworks.
-
Debug messages from the KotlinSDK are visible, but not very easy to control as the output can't be tagged / redirected to a logging framework.
To improve this, we can:
- (Dart) Implement a custom abstract
LogHandlerclass to be registered as a callback function for both SwiftSDK and KotlinSDK. The log handler drops all messages and does not print anything by default. - (Swift/Kotlin) The native integration for both platforms will capture all log messages and forward them to the Flutter VM.
- (Dart) Adapt
TelemetryManagerConfigurationto accept alogHandlercallback as an option. Client apps can implement the longHandler and redirect messages to their preferred logging framework. - (Dart) Mark the existing
debugoption as deprecated. As a fallback, we can provide a default print() implementation whendebugis set to true, this will cause a warning so developers will be prompted to migrate.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request