Package org.apache.log4j.config

Examples of org.apache.log4j.config.PropertySetter.activate()


    } else {
          quietParseUnrecognizedElement(eh, currentElement, props);
      }
  }
      }
      propSetter.activate();
      appender.setErrorHandler(eh);
    }
  }
 
  /**
 
View Full Code Here


    } else {
            quietParseUnrecognizedElement(filter, currentElement, props);
      }
  }
      }
      propSetter.activate();
      LogLog.debug("Adding filter of type ["+filter.getClass()
       +"] to appender named ["+appender.getName()+"].");
      appender.addFilter(filter);
    }   
  }
View Full Code Here

  } else {
        quietParseUnrecognizedElement(cat, currentElement, props);
    }
      }
    }
    propSetter.activate();
  }

  /**
     Used internally to parse a layout element.
  */ 
View Full Code Here

          parseUnrecognizedElement(instance, currentElement, props);
      }
  }
      }
     
      propSetter.activate();
      return layout;
    }
    catch (Exception oops) {
        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {
            Thread.currentThread().interrupt();
View Full Code Here

                        parseUnrecognizedElement(instance, currentElement, props);
                    }
                }
          }

          propSetter.activate();
          return tr;
        }
        catch (Exception oops) {
            if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {
                Thread.currentThread().interrupt();
View Full Code Here

          Enumeration filterProps = v.elements();
          while (filterProps.hasMoreElements()) {
            NameValue kv = (NameValue)filterProps.nextElement();
            propSetter.setProperty(kv.key, kv.value);
          }
          propSetter.activate();
          LogLog.debug("Adding filter of type ["+filter.getClass()
           +"] to appender named ["+appender.getName()+"].");
          appender.addFilter(filter);
        }
      } else {
View Full Code Here

/*     */           }
/*     */         }
/*     */
/*     */       }
/*     */
/* 220 */       propSetter.activate();
/* 221 */       return appender;
/*     */     }
/*     */     catch (Exception oops)
/*     */     {
/* 226 */       LogLog.error("Could not create an Appender. Reported error follows.", oops);
View Full Code Here

/* 263 */             Logger root = this.repository.getRootLogger();
/* 264 */             eh.setLogger(root);
/*     */           }
/*     */         }
/*     */       }
/* 268 */       propSetter.activate();
/* 269 */       appender.setErrorHandler(eh);
/*     */     }
/*     */   }
/*     */
/*     */   protected void parseFilters(Element element, Appender appender)
View Full Code Here

/* 292 */           if (tagName.equals("param")) {
/* 293 */             setParameter(currentElement, propSetter);
/*     */           }
/*     */         }
/*     */       }
/* 297 */       propSetter.activate();
/* 298 */       LogLog.debug("Adding filter of type [" + filter.getClass() + "] to appender named [" + appender.getName() + "].");
/*     */
/* 300 */       appender.addFilter(filter);
/*     */     }
/*     */   }
View Full Code Here

/* 439 */         } else if (tagName.equals("param")) {
/* 440 */           setParameter(currentElement, propSetter);
/*     */         }
/*     */       }
/*     */     }
/* 444 */     propSetter.activate();
/*     */   }
/*     */
/*     */   protected Layout parseLayout(Element layout_element)
/*     */   {
/* 452 */     String className = subst(layout_element.getAttribute("class"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.