tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarc...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core ApplicationContext.java
Date Mon, 24 Nov 2003 21:48:27 GMT
jfarcand    2003/11/24 13:48:27

  Modified:    catalina/src/share/org/apache/catalina/core
                        ApplicationContext.java
  Log:
  When calling ServletContext.log, append the application's name so we know from which application
the log is coming.
  
  Feel free to revert if it breaks something.
  
  Revision  Changes    Path
  1.21      +7 -7      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationContext.java
  
  Index: ApplicationContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationContext.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ApplicationContext.java	4 Sep 2003 17:45:40 -0000	1.20
  +++ ApplicationContext.java	24 Nov 2003 21:48:27 -0000	1.21
  @@ -665,7 +665,7 @@
   
           Logger logger = context.getLogger();
           if (logger != null)
  -            logger.log(message);
  +            logger.log(context.logName() + message);
   
       }
   
  @@ -683,7 +683,7 @@
           
           Logger logger = context.getLogger();
           if (logger != null)
  -            logger.log(exception, message);
  +            logger.log(exception, context.logName() + message);
   
       }
   
  @@ -698,7 +698,7 @@
           
           Logger logger = context.getLogger();
           if (logger != null)
  -            logger.log(message, throwable);
  +            logger.log(context.logName() + message, throwable);
   
       }
   
  
  
  

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


Mime
View raw message