**** log-entries on console twice ? 
 
I have noticed, that running riena server I'm getting log-entries twice. 
is this correct ? 
 
examples: 
.... 3 messages, logged twice, different formatting, but same message I
think: 
 
Wed Sep 17 13:37:24 CEST 2008 DEBUG [Thread-25]
org.eclipse.riena.internal.communication.publisher.hessian.HessianRemoteServicePublisher
published web service. protocol=hessian,
url="" class="moz-txt-link-freetext" href="http://192.168.100.12/hessian/WS_org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI">http://192.168.100.12/hessian/WS_org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI,
interface=org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI 
Wed Sep 17 13:37:24 CEST 2008 DEBUG [Thread-25]
org.eclipse.riena.internal.communication.publisher.hessian.HessianRemoteServicePublisher
web service count: 818 
Wed Sep 17 13:37:24 CEST 2008 DEBUG [Thread-25]
org.eclipse.riena.communication.publisher.ServicePublishBinder service
endpoints count: 818 
DEBUG - 13:37:24 [B: org.eclipse.riena.core] - published web service.
protocol=hessian,
url="" class="moz-txt-link-freetext" href="http://192.168.100.12/hessian/WS_org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI">http://192.168.100.12/hessian/WS_org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI,
interface=org.ekkehard.abc.dataManager.adresse.LandRemoteManagerI. 
DEBUG - 13:37:24 [B: org.eclipse.riena.core] - web service count: 818. 
DEBUG - 13:37:24 [B: org.eclipse.riena.core] - service endpoints count:
818. 
.... 
or this one: 
Wed Sep 17 13:37:24 CEST 2008 DEBUG [Thread-25]
org.eclipse.riena.security.common.authorization.RienaPolicy
rienapolicy: refresh 
DEBUG - 13:37:24 [B: org.eclipse.riena.core] - rienapolicy: refresh. 
 
------------------- 
**** use of log4j in Riena 
 
if you have read my blogs about logging, perhaps you know about some
problems of logging in an OSGI enterprise app. 
I have to combine  Riena, EasyBeans, Hibernate, Equinox, RCP, jBPM,
Drools, ... 
I met all kinds of logging: 
 
* jdk - logging (java.util.logging) 
* JCL Logging - apache-commons-logging 
* log4JLogging 
and because the newest EasyBeans Snapshot includes Hibernate 3.4 I also
have to live with: 
* slf4j Logging 
 
this causes me to re-think all logging and to try to find a good
solution to combine it all 
slf4j was the key :-) 
 
now my logging is configured this way (I'll blog soon about it): 
 
* slf4j + native logback (used for my own bundles + hibernate) 
* jcl-over-slf4j (all bundles using apache-commons-logging will now be
routed via slf4j) 
* jul-over-slf4j (all bundles using java.util logging will now be
routed via slf4j) 
 
this works well 
 
would be great if I also could use 
* log4j-over-slf4j 
but this bridge only provides org.apache.log4j and riena.core
(Log4jLogListener) uses org.apache.log4j.xml.DOMConfigurator, 
so because of this I cannot route log4j via slf4j 
 
any ideas ? 
 
thx 
 
ekke 
 |