tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/admin/WEB-INF/classes/tadm TomcatAdmin.java
Date Fri, 02 Mar 2001 05:26:03 GMT
costin      01/03/01 21:26:03

  Modified:    src/admin/WEB-INF/classes/tadm TomcatAdmin.java
  Log:
  A last ( ? ) change.
  
  Revision  Changes    Path
  1.11      +5 -2      jakarta-tomcat/src/admin/WEB-INF/classes/tadm/TomcatAdmin.java
  
  Index: TomcatAdmin.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/admin/WEB-INF/classes/tadm/TomcatAdmin.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TomcatAdmin.java	2001/02/09 04:03:22	1.10
  +++ TomcatAdmin.java	2001/03/02 05:26:01	1.11
  @@ -9,6 +9,7 @@
   import javax.servlet.jsp.tagext.*;
   import org.apache.tomcat.core.*;
   import org.apache.tomcat.util.log.*;
  +import org.apache.tomcat.util.qlog.*;
   
   /**
    * A context administration class. Contexts can be
  @@ -135,10 +136,12 @@
   	try {
   	    QueueLogger logger=new QueueLogger();
   	    System.out.println("Setting logger " + dest );
  -	    logger.setName( "temp.log");
   	    logger.setPath( dest );
   	    logger.open();
  -	    Logger.putLogger( logger );
  +	    LogManager logManager=(LogManager)ctx.getContextManager().
  +		getNote("tc.LogManager");
  +	    
  +	    logManager.addChannel("temp.log", logger );
   	    Log log=Log.getLog( "temp.log", ctx );
   	    ctx.setLog( log );
   	    ctx.setServletLog( log );
  
  
  

Mime
View raw message