ch.qos.logback.core.joran.spi.ElementSelector Java Examples
The following examples show how to use
ch.qos.logback.core.joran.spi.ElementSelector.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringBootJoranConfigurator.java From super-cloudops with Apache License 2.0 | 5 votes |
@Override public void addInstanceRules(RuleStore rs) { super.addInstanceRules(rs); Environment environment = this.initializationContext.getEnvironment(); rs.addRule(new ElementSelector("configuration/springProperty"), new SpringPropertyAction(environment)); rs.addRule(new ElementSelector("*/springProfile"), new SpringProfileAction(this.initializationContext.getEnvironment())); rs.addRule(new ElementSelector("*/springProfile/*"), new NOPAction()); }
Example #2
Source File: LogbackAccessJoranConfigurator.java From logback-access-spring-boot-starter with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void addInstanceRules(RuleStore ruleStore) { super.addInstanceRules(ruleStore); ruleStore.addRule(new ElementSelector("*/springProfile"), new SpringProfileAction()); ruleStore.addRule(new ElementSelector("*/springProfile/*"), new NOPAction()); ruleStore.addRule(new ElementSelector("configuration/springProperty"), new SpringPropertyAction()); }
Example #3
Source File: LogConfigurator.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void addInstanceRules(RuleStore rs) { // parent rules already added super.addInstanceRules(rs); rs.addRule(new ElementSelector("configuration/appender/logreader"), new LogReaderAction()); }