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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Notification (javax.management)
  • 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