removeAttribute method

void removeAttribute(
  1. String key
)

Remove a custom attribute from all future logs sent by this logger.

Previous logs won't lose the attribute value associated with this key if they were created prior to this call.

Implementation

void removeAttribute(String key) {
  wrap('logs.removeGlobalAttribute', core.internalLogger, null, () {
    return _platform.removeGlobalAttribute(key);
  });
}