You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by la...@apache.org on 2001/03/09 22:39:32 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config LogSetter.java

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