log method
Log message directly.
Implementation
Future<void> log(
String logMessage,
Level logLevel, {
Map<String, dynamic>? attributes,
}) async {
return await channel.invokeMethod('loggerLog', {
'identifier': hashCode.toString(),
'level': _levelAsStatus(logLevel),
'message': logMessage,
if (attributes != null)
'attributes': platform.isIOS ? jsonEncode(attributes) : attributes,
});
}