Google is committed to advancing racial equity for Black communities. See how.

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) =>
    _loggers.putIfAbsent(name, () => Logger._named(name));