log method

  1. @override
Future<void> log(
  1. int level,
  2. String tag,
  3. String message,
  4. bool useIsLoggable,
)
override

Invoke logging function using method channel

Implementation

@override
Future<void> log(int level, String tag, String message, bool useIsLoggable) async {
  final arguments = {
    'level': level,
    'tag': tag,
    'message': message,
    'useIsLoggable': useIsLoggable
  };
  await methodChannel.invokeMethod('log', arguments);
}