public BootstrapLogger.Level getLevel(String category) { for (LevelNode child : this.children) { if (category.startsWith(child.name)) { return child.getLevel(category); } } return this.level; }
public BootstrapLogger.Level getLevel(String category) { for (LevelNode child : this.children) { if (category.startsWith(child.name)) { return child.getLevel(category); } } return this.level; } }
@Override public BackingLogger getBackingLogger(String name) { return new InitialBackingLogger(name, this.root.getLevel(name)); }
@Override public BackingLogger getBackingLogger(String name) { return new InitialBackingLogger(name, this.root.getLevel(name)); }
protected void apply(LevelNode node, LogContextConfiguration config) { if (!node.getName().equals("")) { config.addLoggerConfiguration(node.getName()).setLevel(node.getLevel().toString()); } for (LevelNode each : node.getChildren()) { apply(each, config); } } }
protected void apply(LevelNode node, LogContextConfiguration config) { if (!node.getName().equals("")) { config.addLoggerConfiguration(node.getName()).setLevel(node.getLevel().toString()); } for (LevelNode each : node.getChildren()) { apply(each, config); } }
protected void apply(LevelNode node, LogContextConfiguration config) { if (!node.getName().equals("")) { config.addLoggerConfiguration(node.getName()).setLevel(node.getLevel().toString()); } for (LevelNode each : node.getChildren()) { apply(each, config); } }
private void apply(LevelNode node, LoggingFraction fraction) { if (!node.getName().equals("")) { fraction.logger(node.getName(), (l) -> { l.level(Level.valueOf(node.getLevel().toString())); }); } for (LevelNode each : node.getChildren()) { apply(each, fraction); } }
private void apply(LevelNode node) { if (!node.getName().equals("")) { this.fraction.logger(node.getName(), (l) -> { l.level(Level.valueOf(node.getLevel().toString())); }); } for (LevelNode each : node.getChildren()) { apply(each); } } }