close method

  1. @nonVirtual
Future<void> close([
  1. int? depth
])

Закрывает цепочку логгеров

Implementation

@nonVirtual
Future<void> close([int? depth]) async {
  await closeThis();
  final subLogger = this.subLogger;
  if (subLogger != null) {
    if (depth == null) {
      return subLogger.close();
    }
    if (depth > 1) {
      return subLogger.close(depth - 1);
    }
  }
}