You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@locus.apache.org on 2000/12/06 15:19:58 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/transformation LogTransformer.java
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 & 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;