Logger constructor

Logger(String name)

Singleton constructor. Calling new Logger(name) will return the same actual instance whenever it is called with the same string name.

Implementation

factory Logger(String name) {
  return _loggers.putIfAbsent(name, () => new Logger._named(name));
}