本文整理了Java中ch.qos.logback.core.joran.action.Action.setContext()
方法的一些代码示例,展示了Action.setContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.setContext()
方法的具体详情如下:
包路径:ch.qos.logback.core.joran.action.Action
类名称:Action
方法名:setContext
暂无
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
代码示例来源:origin: ch.qos.logback/core
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(Pattern pattern, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(pattern);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(pattern, a4p);
}
a4p.add(action);
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(Pattern pattern, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(pattern);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(pattern, a4p);
}
a4p.add(action);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
代码示例来源:origin: com.hynnet/logback-core
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
代码示例来源:origin: tony19/logback-android
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
代码示例来源:origin: Nextdoor/bender
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(Pattern pattern, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(pattern);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(pattern, a4p);
}
a4p.add(action);
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Add a new rule, i.e. a pattern, action pair to the rule store. <p> Note
* that the added action's LoggerRepository will be set in the process.
*/
public void addRule(ElementSelector elementSelector, Action action) {
action.setContext(context);
List<Action> a4p = rules.get(elementSelector);
if (a4p == null) {
a4p = new ArrayList<Action>();
rules.put(elementSelector, a4p);
}
a4p.add(action);
}
内容来源于网络,如有侵权,请联系作者删除!