LoggingManager constructor
LoggingManager({
- Logger? logger,
- LoggingTree? tree,
Creates a new LoggingManager with the given LoggingTree listening, & then
processing logs from the logger
.
The logger
that is used from this manager is attached to a logging tree.
You don't have to get the logger from this instance, you can just use the logger's name as
every logger created with a name will return the same
actual instance whenever it is called with the same string name.
Also check Logger.detached.
Records recieved from this logger and its childrens are sent to the logging tree for further processing (or just printing, attached logging tree is responsible for processing).
Implementation
LoggingManager({
Logger? logger,
LoggingTree? tree,
}) : logger = logger ?? Logger.root {
hierarchicalLoggingEnabled = true;
if (tree != null) {
plantTree(tree);
}
}