Tabnine Logo
LevelNode
Code IndexAdd Tabnine to your IDE (free)

How to use
LevelNode
in
org.wildfly.swarm.bootstrap.logging

Best Java code snippets using org.wildfly.swarm.bootstrap.logging.LevelNode (Showing top 13 results out of 315)

origin: thorntail/thorntail

public BootstrapLogger.Level getLevel(String category) {
  for (LevelNode child : this.children) {
    if (category.startsWith(child.name)) {
      return child.getLevel(category);
    }
  }
  return this.level;
}
origin: thorntail/thorntail

public void add(String category, BootstrapLogger.Level level) {
  boolean handled = false;
  for (LevelNode child : this.children) {
    if (category.startsWith(child.name)) {
      handled = true;
      child.add(category, level);
    }
  }
  if (!handled) {
    this.children.add(new LevelNode(category, level));
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

  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);
    }
  }
}
origin: org.wildfly.swarm/container

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);
  }
}
origin: org.wildfly.swarm/container-runtime

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);
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

  public BootstrapLogger.Level getLevel(String category) {
    for (LevelNode child : this.children) {
      if (category.startsWith(child.name)) {
        return child.getLevel(category);
      }
    }

    return this.level;
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

public void add(String category, BootstrapLogger.Level level) {
  boolean handled = false;
  for (LevelNode child : this.children) {
    if (category.startsWith(child.name)) {
      handled = true;
      child.add(category, level);
    }
  }
  if (!handled) {
    this.children.add(new LevelNode(category, level));
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

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);
  }
}
origin: thorntail/thorntail

@Override
public BackingLogger getBackingLogger(String name) {
  return new InitialBackingLogger(name, this.root.getLevel(name));
}
origin: thorntail/thorntail

this.root = new LevelNode("", rootLevel);
  this.root.add(each, levels.get(each));
origin: org.wildfly.swarm/logging

  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);
    }
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

@Override
public BackingLogger getBackingLogger(String name) {
  return new InitialBackingLogger(name, this.root.getLevel(name));
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

this.root = new LevelNode("", rootLevel);
  this.root.add(each, levels.get(each));
org.wildfly.swarm.bootstrap.loggingLevelNode

Most used methods

  • getLevel
  • getChildren
  • getName
  • <init>
  • add

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • setScale (BigDecimal)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JFrame (javax.swing)
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now