summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-01-19 13:24:12 +0000
committerOliver Bolte <obo@openoffice.org>2006-01-19 13:24:12 +0000
commitf7ed0c240ee738e26c88ef7d612a6d40ba017e4e (patch)
tree978aae083d9b71dcbfe3d0e4dd3faa4701f15070 /qadevOOo/runner/stats
parente1040e73eff5108a44cb516111e41322e6433286 (diff)
INTEGRATION: CWS qadev25 (1.4.6); FILE MERGED
2005/12/07 14:37:29 lla 1.4.6.1: #127811# Logging without entry should possible
Diffstat (limited to 'qadevOOo/runner/stats')
-rw-r--r--qadevOOo/runner/stats/SimpleLogWriter.java32
1 files changed, 20 insertions, 12 deletions
diff --git a/qadevOOo/runner/stats/SimpleLogWriter.java b/qadevOOo/runner/stats/SimpleLogWriter.java
index abe5f7204381..338c11483034 100644
--- a/qadevOOo/runner/stats/SimpleLogWriter.java
+++ b/qadevOOo/runner/stats/SimpleLogWriter.java
@@ -4,9 +4,9 @@
*
* $RCSfile: SimpleLogWriter.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 17:29:54 $
+ * last change: $Author: obo $ $Date: 2006-01-19 14:24:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,7 +45,7 @@ import java.util.GregorianCalendar;
public class SimpleLogWriter extends PrintWriter implements LogWriter {
- boolean logging = false;
+ boolean m_bLogging = false;
share.DescEntry entry = null;
share.Watcher ow = null;
@@ -63,24 +63,32 @@ public class SimpleLogWriter extends PrintWriter implements LogWriter {
super.flush();
}
- public boolean initialize(share.DescEntry entry, boolean logging) {
- this.logging = logging;
- this.entry = entry;
+ public boolean initialize(share.DescEntry _entry, boolean _bLogging) {
+ m_bLogging = _bLogging;
+ entry = _entry;
- return true;
+ return true;
}
public void println(String msg) {
+ if (entry != null)
+ {
+ this.ow = (share.Watcher) entry.UserDefinedParams.get("Watcher");
- this.ow = (share.Watcher) entry.UserDefinedParams.get("Watcher");
-
- if (this.ow != null) {
- this.ow.ping();
+ if (this.ow != null) {
+ this.ow.ping();
+ }
}
- if (logging) {
+ if (m_bLogging)
+ {
super.println("LOG> "+msg);
super.flush();
}
+ // else
+ // {
+ // super.println(" ++ " + msg);
+ // super.flush();
+ // }
}
public boolean summary(share.DescEntry entry) {