public static void setupLogger() { ILoggerFactory loggerFactory = LoggerFactory.getILoggerFactory(); if (loggerFactory instanceof LoggerContext) { LoggerContext lc = (LoggerContext) loggerFactory; if (U.isEmpty(lc.getCopyOfPropertyMap())) { Logger root = lc.getLogger(Logger.ROOT_LOGGER_NAME); root.setLevel(Level.INFO); } } }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
@Override public void onStart(LoggerContext ctx) { System.out.println("LoggerContext (" + ctx + ") started."); System.out.println("LoggerContext properties: " + ctx.getCopyOfPropertyMap()); }
@Override public void onReset(LoggerContext ctx) { for (String prop : propsToAdd.stringPropertyNames()) { ctx.putProperty(prop, propsToAdd.getProperty(prop)); } System.out.println("LoggerContext reset, current properties: " + ctx.getCopyOfPropertyMap()); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBithTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
public LoggerContextVO(LoggerContext lc) { this.name = lc.getName(); this.propertyMap = lc.getCopyOfPropertyMap(); this.birthTime = lc.getBirthTime(); }
encoder.setContext(loggerContext); final StringBuilder sb = new StringBuilder(); Map<String, String> copyOfPropertyMap = loggerContext.getCopyOfPropertyMap(); for(Entry<String, String> entry : copyOfPropertyMap.entrySet()) { sb.append("%property{" + entry.getKey()+ "} ");