commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/impl RegistryBuilder.java
Date Thu, 02 Oct 2003 22:05:42 GMT
hlship      2003/10/02 15:05:42

  Modified:    hivemind/framework/src/java/org/apache/commons/hivemind/impl
                        RegistryBuilder.java
  Log:
  Write a detailed message to System.err if error-level logging is not enabled for the RegistryBuilder.
  
  Revision  Changes    Path
  1.9       +25 -1     jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/impl/RegistryBuilder.java
  
  Index: RegistryBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/impl/RegistryBuilder.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- RegistryBuilder.java	1 Oct 2003 20:43:21 -0000	1.8
  +++ RegistryBuilder.java	2 Oct 2003 22:05:42 -0000	1.9
  @@ -115,6 +115,30 @@
   {
       private static final Log LOG = LogFactory.getLog(RegistryBuilder.class);
   
  +    static {
  +        if (!LOG.isErrorEnabled())
  +        {
  +            System.err.println(
  +                "********************************************************************************");
  +            System.err.println(
  +                "* L O G G I N G   C O N F I G U R A T I O N   E R R O R              
         *");
  +            System.err.println(
  +                "* ----------------------------------------------------------------------------
*");
  +            System.err.println(
  +                "* Logging is not enabled for org.apache.commons.hivemind.impl.RegistryBuilder.
*");
  +            System.err.println(
  +                "* Errors during HiveMind module descriptor parsing and validation may
not be   *");
  +            System.err.println(
  +                "* logged. This may result in difficult-to-trace runtime exceptions, if
there   *");
  +            System.err.println(
  +                "* are errors in any of your module descriptors. You should enable error
       *");
  +            System.err.println(
  +                "* logging for the org.apache.commons.hivemind and hivemind loggers.  
         *");
  +            System.err.println(
  +                "********************************************************************************");
  +        }
  +    }
  +
       /**
        * The path, within a JAR or the classpath, to the HiveMind module
        * deployment descriptor: <code>META-INF/hivemodule.xml</code>.
  
  
  

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


Mime
View raw message