tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper Constants.java
Date Tue, 19 Sep 2000 19:40:49 GMT
pierred     00/09/19 12:40:49

  Modified:    jasper/src/share/org/apache/jasper Constants.java
  Log:
  Use default logger when JASPER_LOG undefined.
  
  Revision  Changes    Path
  1.3       +7 -2      jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/Constants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Constants.java	2000/08/18 20:58:51	1.2
  +++ Constants.java	2000/09/19 19:40:49	1.3
  @@ -244,11 +244,16 @@
        *                       level. 
        */
       public static final void message(String key, Object[] args, int verbosityLevel) {
  -	if (jasperLog == null)
  +	if (jasperLog == null) {
   	    jasperLog = Logger.getLogger("JASPER_LOG");
  +	    if (jasperLog == null) {
  +		jasperLog = Logger.getDefaultLogger();
  +	    }
  +	}
   
  -	if (jasperLog != null)
  +	if (jasperLog != null) {
   	    jasperLog.log(getString(key, args), verbosityLevel);
  +	}
       }
   
       public static Logger jasperLog = null;
  
  
  

Mime
View raw message