You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by mw...@apache.org on 2004/12/09 06:22:05 UTC

cvs commit: logging-log4j/src/java/org/apache/log4j/spi Configurator.java

mwomack     2004/12/08 21:22:05

  Modified:    src/java/org/apache/log4j/spi Configurator.java
  Log:
  Adding doConfigure(InputStream, LoggingRepository) to Configurator interface.
  
  Revision  Changes    Path
  1.13      +16 -0     logging-log4j/src/java/org/apache/log4j/spi/Configurator.java
  
  Index: Configurator.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/Configurator.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Configurator.java	24 Nov 2004 08:17:01 -0000	1.12
  +++ Configurator.java	9 Dec 2004 05:22:04 -0000	1.13
  @@ -18,6 +18,7 @@
   
   import org.apache.log4j.spi.LoggerRepository;
   
  +import java.io.InputStream;
   import java.net.URL;
   
   
  @@ -50,4 +51,19 @@
        @param repository The repository to operate upon.
      */
     void doConfigure(URL url, LoggerRepository repository);
  +  
  +  /**
  +     Use an InputStream as a source for configuration and set up log4j
  +     accordingly.
  +
  +     The configuration is done relative to the <code>hierarchy</code>
  +     parameter.
  +
  +     @since 1.3
  +
  +     @param stream The input stream to use for configuration data.
  +     @param repository The repository to operate upon.
  +   */
  +  void doConfigure(InputStream stream, LoggerRepository repository);
  +
   }
  
  
  

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