Package org.apache.log4j.config

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


    } else {
          parseUnrecognizedElement(instance, currentElement, props);
      }
  }
      }
      propSetter.activate();
      return appender;
    }
    /* Yes, it's ugly.  But all of these exceptions point to the same
       problem: we can't create an Appender */
    catch (Exception oops) {
View Full Code Here


    } 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

                "] which does not implement org.apache.log4j.spi.AppenderAttachable.");
      }
    }
  }
      }
      propSetter.activate();
      return appender;
    }
    /* Yes, it's ugly.  But all of these exceptions point to the same
       problem: we can't create an Appender */
    catch (Exception oops) {
View Full Code Here

      Logger root = repository.getRootLogger();
      eh.setLogger(root);
    }
  }
      }
      propSetter.activate();
      appender.setErrorHandler(eh);
    }
  }
 
  /**
 
View Full Code Here

    if(tagName.equals(PARAM_TAG)) {
            setParameter(currentElement, propSetter);
    }
  }
      }
      propSetter.activate();
      LogLog.debug("Adding filter of type ["+filter.getClass()
       +"] to appender named ["+appender.getName()+"].");
      appender.addFilter(filter);
    }   
  }
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.