addTag method

Future<void> addTag(
  1. String tagName,
  2. String value
)

Adds a tag to all future messages from this logger.

This is not invoked and resolves silently when using Flutter web.

Implementation

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