tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config LogSetter.java
Date Fri, 09 Mar 2001 21:39:32 GMT
larryi      01/03/09 13:39:32

  Modified:    src/share/org/apache/tomcat/modules/config LogSetter.java
  Log:
  Update to set the default ServletLog for a Context if it hasn't been set
  already.  Defaulting provided in Context, defaults ServletLog output to the
  main Context log.
  
  Revision  Changes    Path
  1.10      +12 -0     jakarta-tomcat/src/share/org/apache/tomcat/modules/config/LogSetter.java
  
  Index: LogSetter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/LogSetter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- LogSetter.java	2001/03/02 04:49:13	1.9
  +++ LogSetter.java	2001/03/09 21:39:32	1.10
  @@ -261,6 +261,18 @@
   
       }
   
  +    /** Set default ServletLog for Context if necessary
  +     */
  +
  +    public void addContext( ContextManager cm, Context ctx )
  +	throws TomcatException
  +    {
  +	if( "org/apache/tomcat/facade".equals( name ) &&
  +		    ctx.getServletLog() == null ) {
  +	    ctx.setServletLog( Log.getLog( name, ctx.getId() ) );
  +	}
  +    }
  +
       /** Adapter and registry for QueueLoggers
        */
       static class TomcatLogManager extends LogManager {
  
  
  

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


Mime
View raw message