plantTree static method
Plant a tree - the source that will receive log messages.
Implementation
static void plantTree(LogTree tree) {
for (final level in tree.getLevels()) {
var logList = _trees[level];
if (logList == null) {
logList = [];
_trees[level] = logList;
}
logList.add(tree);
if (tree is UnPlantableTree) {
(tree as UnPlantableTree).planted();
}
}
}