logErrorTrace static method

Future<void> logErrorTrace(
  1. String tag,
  2. String subTag,
  3. String logMessage,
  4. Error e,
)

Implementation

static Future<void> logErrorTrace(
    String tag, String subTag, String logMessage, Error e) async {
  final String result =
      await channel.invokeMethod('logThis', <String, dynamic>{
    'tag': tag,
    'subTag': subTag,
    'logMessage': logMessage,
    'e': e.stackTrace.toString(),
    'level': _getLogLevel(LogLevel.ERROR)
  });
  printDebugMessage(result, 2);
}