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

How to use
RootLoggerAction
in
ch.qos.logback.classic.joran.action

Best Java code snippets using ch.qos.logback.classic.joran.action.RootLoggerAction (Showing top 20 results out of 315)

origin: ch.qos.logback/logback-classic

public void begin(InterpretationContext ec, String name, Attributes attributes) {
  inError = false;
  LoggerContext loggerContext = (LoggerContext) this.context;
  root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
  String levelStr = ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
  if (!OptionHelper.isEmpty(levelStr)) {
    Level level = Level.toLevel(levelStr);
    addInfo("Setting level of ROOT logger to " + level);
    root.setLevel(level);
  }
  ec.pushObject(root);
}
origin: ch.qos.logback/logback-classic

public void end(InterpretationContext ec, String name) {
  if (inError) {
    return;
  }
  Object o = ec.peekObject();
  if (o != root) {
    addWarn("The object on the top the of the stack is not the root logger");
    addWarn("It is: " + o);
  } else {
    ec.popObject();
  }
}
origin: ch.qos.logback/logback-classic

rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/logger/appender-ref"), new AppenderRefAction<ILoggingEvent>());
origin: camunda/camunda-bpm-platform

rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/logger/appender-ref"),
origin: camunda/camunda-bpm-platform

public void end(InterpretationContext ec, String name) {
 if (inError) {
  return;
 }
 Object o = ec.peekObject();
 if (o != root) {
  addWarn("The object on the top the of the stack is not the root logger");
  addWarn("It is: " + o);
 } else {
  ec.popObject();
 }
}
origin: camunda/camunda-bpm-platform

public void begin(InterpretationContext ec, String name, Attributes attributes) {
 inError = false;
 LoggerContext loggerContext = (LoggerContext) this.context;
 root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
 String levelStr =  ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
 if (!OptionHelper.isEmpty(levelStr)) {
  Level level = Level.toLevel(levelStr);
  addInfo("Setting level of ROOT logger to " + level);
  root.setLevel(level);
 }
 ec.pushObject(root);
}
origin: tony19/logback-android

@SuppressWarnings("deprecation")
@Override
public void addInstanceRules(RuleStore rs) {
 // parent rules already added
 super.addInstanceRules(rs);
 rs.addRule(new ElementSelector("configuration"), new ConfigurationAction());
 rs.addRule(new ElementSelector("configuration/contextName"),
   new ContextNameAction());
  rs.addRule(new ElementSelector("configuration/contextListener"),
   new LoggerContextListenerAction());
 rs.addRule(new ElementSelector("configuration/appender/sift"), new SiftAction());
 rs.addRule(new ElementSelector("configuration/appender/sift/*"), new NOPAction());
 rs.addRule(new ElementSelector("configuration/logger"), new LoggerAction());
 rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());
 rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
 rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
 rs.addRule(new ElementSelector("configuration/logger/appender-ref"),
   new AppenderRefAction<ILoggingEvent>());
 rs.addRule(new ElementSelector("configuration/root/appender-ref"),
   new AppenderRefAction<ILoggingEvent>());
 rs.addRule(new ElementSelector("configuration/include"), new IncludeAction());
 rs.addRule(new ElementSelector("configuration/includes"), new FindIncludeAction());
 rs.addRule(new ElementSelector("configuration/includes/include"), new ConditionalIncludeAction());
 rs.addRule(new ElementSelector("configuration/receiver"),
   new ReceiverAction());
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

public void end(InterpretationContext ec, String name) {
 if (inError) {
  return;
 }
 Object o = ec.peekObject();
 if (o != root) {
  addWarn("The object on the top the of the stack is not the root logger");
  addWarn("It is: " + o);
 } else {
  ec.popObject();
 }
}
origin: tony19/logback-android

public void begin(InterpretationContext ec, String name, Attributes attributes) {
 inError = false;
 LoggerContext loggerContext = (LoggerContext) this.context;
 root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
 String levelStr =  ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
 if (!OptionHelper.isEmpty(levelStr)) {
  Level level = Level.toLevel(levelStr);
  addInfo("Setting level of ROOT logger to " + level);
  root.setLevel(level);
 }
 ec.pushObject(root);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

rs.addRule(new Pattern("configuration/logger/level"), new LevelAction());
rs.addRule(new Pattern("configuration/root"), new RootLoggerAction());
rs.addRule(new Pattern("configuration/root/level"), new LevelAction());
rs.addRule(new Pattern("configuration/logger/appender-ref"),
origin: com.alibaba.citrus.tool/antx-autoexpand

public void end(InterpretationContext ec, String name) {
 if (inError) {
  return;
 }
 Object o = ec.peekObject();
 if (o != root) {
  addWarn("The object on the top the of the stack is not the root logger");
  addWarn("It is: " + o);
 } else {
  ec.popObject();
 }
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

public void begin(InterpretationContext ec, String name, Attributes attributes) {
 inError = false;
 LoggerContext loggerContext = (LoggerContext) this.context;
 root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
 String levelStr =  ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
 if (!OptionHelper.isEmpty(levelStr)) {
  Level level = Level.toLevel(levelStr);
  addInfo("Setting level of ROOT logger to " + level);
  root.setLevel(level);
 }
 ec.pushObject(root);
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

rs.addRule(new Pattern("configuration/logger/level"), new LevelAction());
rs.addRule(new Pattern("configuration/root"), new RootLoggerAction());
rs.addRule(new Pattern("configuration/root/level"), new LevelAction());
rs.addRule(new Pattern("configuration/logger/appender-ref"),
origin: tony19/logback-android

public void end(InterpretationContext ec, String name) {
 if (inError) {
  return;
 }
 Object o = ec.peekObject();
 if (o != root) {
  addWarn("The object on the top the of the stack is not the root logger");
  addWarn("It is: " + o);
 } else {
  ec.popObject();
 }
}
origin: Nextdoor/bender

public void begin(InterpretationContext ec, String name, Attributes attributes) {
  inError = false;
  LoggerContext loggerContext = (LoggerContext) this.context;
  root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
  String levelStr = ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
  if (!OptionHelper.isEmpty(levelStr)) {
    Level level = Level.toLevel(levelStr);
    addInfo("Setting level of ROOT logger to " + level);
    root.setLevel(level);
  }
  ec.pushObject(root);
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/logger/appender-ref"), new AppenderRefAction<ILoggingEvent>());
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public void end(InterpretationContext ec, String name) {
  if (inError) {
    return;
  }
  Object o = ec.peekObject();
  if (o != root) {
    addWarn("The object on the top the of the stack is not the root logger");
    addWarn("It is: " + o);
  } else {
    ec.popObject();
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public void begin(InterpretationContext ec, String name, Attributes attributes) {
  inError = false;
  LoggerContext loggerContext = (LoggerContext) this.context;
  root = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
  String levelStr = ec.subst(attributes.getValue(ActionConst.LEVEL_ATTRIBUTE));
  if (!OptionHelper.isEmpty(levelStr)) {
    Level level = Level.toLevel(levelStr);
    addInfo("Setting level of ROOT logger to " + level);
    root.setLevel(level);
  }
  ec.pushObject(root);
}
origin: io.virtdata/virtdata-lib-realer

rs.addRule(new ElementSelector("configuration/logger/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/root"), new RootLoggerAction());
rs.addRule(new ElementSelector("configuration/root/level"), new LevelAction());
rs.addRule(new ElementSelector("configuration/logger/appender-ref"), new AppenderRefAction<ILoggingEvent>());
origin: io.virtdata/virtdata-lib-realer

public void end(InterpretationContext ec, String name) {
  if (inError) {
    return;
  }
  Object o = ec.peekObject();
  if (o != root) {
    addWarn("The object on the top the of the stack is not the root logger");
    addWarn("It is: " + o);
  } else {
    ec.popObject();
  }
}
ch.qos.logback.classic.joran.actionRootLoggerAction

Most used methods

  • <init>
  • addInfo
  • addWarn

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top Sublime Text plugins
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