addAttribute method

Future<void> addAttribute(
  1. String attributeName,
  2. String value
)

Adds an attribute to all future messages from this logger.

Implementation

Future<void> addAttribute(String attributeName, String value) async {
  return await channel.invokeMethod('loggerAddAttribute', {
    'identifier': hashCode.toString(),
    'key': attributeName,
    'value': value,
  });
}