add method

void add(
  1. BaseAppender appender,
  2. String name
)

Implementation

void add(BaseAppender appender, String name) {
  final origAppender = appenders[name];
  if (origAppender != null) {
    origAppender.dispose();
  }
  appenders[name] = appender;
}