cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/transformation LogTransformer.java
Date Wed, 06 Dec 2000 14:19:58 GMT
dims        00/12/06 06:19:53

  Modified:    src/org/apache/cocoon/transformation Tag: xml-cocoon2
                        LogTransformer.java
  Log:
  Use System.out if logfile is not specified.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.10  +6 -2      xml-cocoon/src/org/apache/cocoon/transformation/Attic/LogTransformer.java
  
  Index: LogTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/transformation/Attic/LogTransformer.java,v
  retrieving revision 1.1.2.9
  retrieving revision 1.1.2.10
  diff -u -r1.1.2.9 -r1.1.2.10
  --- LogTransformer.java	2000/10/19 14:44:34	1.1.2.9
  +++ LogTransformer.java	2000/12/06 14:19:43	1.1.2.10
  @@ -45,7 +45,7 @@
    * 
    * @author <a href="mailto:giacomo.pati@pwr.ch">Giacomo Pati</a>
    *         (PWR Organisation &amp; Entwicklung)
  - * @version CVS $Revision: 1.1.2.9 $ $Date: 2000/10/19 14:44:34 $
  + * @version CVS $Revision: 1.1.2.10 $ $Date: 2000/12/06 14:19:43 $
    *
    */
   public class LogTransformer extends AbstractTransformer {
  @@ -78,7 +78,11 @@
                   append = false;
               }
               try {
  -                logfile = new FileWriter(logfilename, append );
  +                // Check for null, use System.out if logfile is not specified.
  +                if(logfilename != null)
  +                    logfile = new FileWriter(logfilename, append );
  +                else 
  +                    logfile = new FileWriter(java.io.FileDescriptor.out);
               } catch (IOException e) {
                   isValid = false;
                   throw e;
  
  
  

Mime
View raw message