logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/xml Log4jEntityResolver.java
Date Thu, 18 Nov 2004 22:14:39 GMT
ceki        2004/11/18 14:14:39

  Modified:    src/java/org/apache/log4j/xml Log4jEntityResolver.java
  Log:
  Added a warning message regarding the deprecation of log4j.dtd.
  
  Revision  Changes    Path
  1.8       +3 -0      logging-log4j/src/java/org/apache/log4j/xml/Log4jEntityResolver.java
  
  Index: Log4jEntityResolver.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/xml/Log4jEntityResolver.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Log4jEntityResolver.java	18 Nov 2004 11:37:58 -0000	1.7
  +++ Log4jEntityResolver.java	18 Nov 2004 22:14:38 -0000	1.8
  @@ -18,6 +18,7 @@
   
   import org.apache.log4j.LogManager;
   import org.apache.log4j.Logger;
  +import org.apache.log4j.helpers.Constants;
   import org.xml.sax.EntityResolver;
   import org.xml.sax.InputSource;
   
  @@ -39,6 +40,8 @@
       logger.debug(
         "Log4jEntityResolver.resolveEntity({}, {}) called", publicId, systemId);
       if (systemId.endsWith("log4j.dtd")) {
  +      logger.warn("The 'log4j.dtd' is no longer used nor needed.");
  +      logger.warn("See {}#log4j_dtd for more details.", Constants.CODES_HREF);
         Class clazz = getClass();
         InputStream in =
           clazz.getResourceAsStream("/org/apache/log4j/xml/log4j.dtd");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message