summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-21 07:46:48 (EST)
committerStefan Liebig2008-02-21 07:46:48 (EST)
commit96a68db73c716a1e026bd993fce8c135b235177c (patch)
treeb6565e42330151458cf330d9a3fe232aeb90b254
parentf7aa8b701e508665b6caa2b8053e47798ba86f9f (diff)
downloadorg.eclipse.riena-96a68db73c716a1e026bd993fce8c135b235177c.zip
org.eclipse.riena-96a68db73c716a1e026bd993fce8c135b235177c.tar.gz
org.eclipse.riena-96a68db73c716a1e026bd993fce8c135b235177c.tar.bz2
replaced StringBuffer with StringBuilder + removed code for work-around of logging bug (time not set)
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/logging/SysoLogListener.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/SysoLogListener.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/SysoLogListener.java
index a6e1cd1..a700ad9 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/SysoLogListener.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/SysoLogListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 compeople AG and others.
+ * Copyright (c) 2007, 2008 compeople AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -21,13 +21,8 @@ public class SysoLogListener implements LogListener {
public void logged(LogEntry entry) {
ExtendedLogEntry eEntry = (ExtendedLogEntry) entry;
- StringBuffer buffer = new StringBuffer();
- long time = eEntry.getTime();
- if (time == 0) {
- buffer.append(new Date().toString()).append(' ');
- } else {
- buffer.append(new Date(eEntry.getTime()).toString()).append(' ');
- }
+ StringBuilder buffer = new StringBuilder();
+ buffer.append(new Date(eEntry.getTime()).toString()).append(' ');
String level;
switch (eEntry.getLevel()) {
case LogService.LOG_DEBUG: