Logger.detached constructor
Logger.detached(
- String name
Creates a new detached Logger.
Returns a new Logger instance (unlike new Logger
, which returns a
Logger singleton), which is not part of the system loggers.
It can be useful when you just need a local short-living logger, which you'd like to be garbage-collected later.
Implementation
factory Logger.detached(String name) => Logger._named(name);