summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-27 10:05:34 (EST)
committerStefan Liebig2008-02-27 10:05:34 (EST)
commit3a5e11d207d4235315a49ff4410a634990bd293f (patch)
treee8d3086428ad784d9c442e460b3ef4d7b587fd21
parent0010727846ddf072ebca481c28082e24a7d045f3 (diff)
downloadorg.eclipse.riena-3a5e11d207d4235315a49ff4410a634990bd293f.zip
org.eclipse.riena-3a5e11d207d4235315a49ff4410a634990bd293f.tar.gz
org.eclipse.riena-3a5e11d207d4235315a49ff4410a634990bd293f.tar.bz2
uses console logger
-rw-r--r--org.eclipse.riena.communication.publisher.hessian/src/org/eclipse/riena/communication/publisher/hessian/HessianRienaDispatcherServlet.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/org.eclipse.riena.communication.publisher.hessian/src/org/eclipse/riena/communication/publisher/hessian/HessianRienaDispatcherServlet.java b/org.eclipse.riena.communication.publisher.hessian/src/org/eclipse/riena/communication/publisher/hessian/HessianRienaDispatcherServlet.java
index cef416c..20a8b71 100644
--- a/org.eclipse.riena.communication.publisher.hessian/src/org/eclipse/riena/communication/publisher/hessian/HessianRienaDispatcherServlet.java
+++ b/org.eclipse.riena.communication.publisher.hessian/src/org/eclipse/riena/communication/publisher/hessian/HessianRienaDispatcherServlet.java
@@ -22,11 +22,14 @@ import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import org.eclipse.equinox.log.Logger;
import org.eclipse.riena.communication.core.RemoteServiceDescription;
+import org.eclipse.riena.core.logging.ConsoleLogger;
import org.eclipse.riena.internal.communication.publisher.hessian.Activator;
import org.eclipse.riena.internal.communication.publisher.hessian.HessianRemoteServicePublisher;
import org.eclipse.riena.internal.communication.publisher.hessian.MessageContext;
import org.eclipse.riena.internal.communication.publisher.hessian.MessageContextAccessor;
+import org.osgi.service.log.LogService;
import com.caucho.hessian.io.AbstractHessianOutput;
import com.caucho.hessian.io.AbstractSerializerFactory;
@@ -49,6 +52,8 @@ public class HessianRienaDispatcherServlet extends GenericServlet {
private SerializerFactory serializerFactory = null;
+ private final static Logger logger = new ConsoleLogger(HessianRienaDispatcherServlet.class.getName());
+
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
@@ -68,16 +73,7 @@ public class HessianRienaDispatcherServlet extends GenericServlet {
return null;
}
});
- log("HessianRienaDispatcherServlet:: DEBUG initialized");
- }
-
- @Override
- public void log(String message) {
- System.out.println(message);
- }
-
- public void log(String message, Exception e) {
- System.out.println(message + "(" + e.getMessage() + ")");
+ logger.log(LogService.LOG_DEBUG, "initialized");
}
@Override