log method

  1. @override
Future<void> log(
  1. String message
)
override

Logs a message that's included in the next fatal or non-fatal report.

Logs are visible in the session view on the Firebase Crashlytics console.

Newline characters are stripped and extremely long messages are truncated. The maximum log size is 64k. If exceeded, the log rolls such that messages are removed, starting from the oldest.

Implementation

@override
Future<void> log(String message) async {
  try {
    await channel.invokeMethod<void>('Crashlytics#log', <String, dynamic>{
      'message': message,
    });
  } on PlatformException catch (e, s) {
    convertPlatformException(e, s);
  }
}