hi christian,
I opened bugzilla 247680 (duplicate log entries).
perhaps someone can explain in detail the logging concepts of riena ?
perhaps in riena wiki ?
I commented in SysoLogListener the lines
// System.out.println(buffer.toString());
// if (eEntry.getException() != null) {
// eEntry.getException().printStackTrace(System.out);
// }
and now I'm getting only one log message from riena
then I commented in Log4jLogListener
// if (url != null) {
// // workaround to fix class loader problems with log4j
// // implementation. see "eclipse rich client platform, eclipse
// // series, page 340.
// Thread thread = Thread.currentThread();
// ClassLoader loader = thread.getContextClassLoader();
// thread.setContextClassLoader(this.getClass().getClassLoader());
// try {
// // configure the log4j with given config
// DOMConfigurator.configure(url);
// } finally {
// thread.setContextClassLoader(loader);
// }
// } else {
// // TODO: handle this ...
// }
and removed org.log4j.xml from import and from MANIFEST.MF dependencies
then I could replace the standard org.apache.log4j bundle
by log4j-over-slf4j :-)
now I'm able to use ONE log implementation (logback as native slf4j implementation)
and can configure in my logback.xml logging for all used bundles, per ex.
Riena (thru log4j-over-slf4j)
EasyBeans (java.util.logging-to-slf4j)
Hibernate (slf4j)
jbpm (common-logging over slf4j)
etc
of course I dont know if my commented code above will have side-effects
and I still dont know where the other DEBUG-log-line of riena comes from
and if there's a place to configure this
perhaps I can get some info ?
...just working on a blog about this logging
and also worjking on a sample server combining riena + easybeans / hibernate
THX
ekke
Christian Campo schrieb:
Sounds strange......I briefly looked into the code, but I think someone else can make better sense of it, when he returns next to the office.
Duplicate errorlog entries look like a bug, so please open a bugzilla entry.....
christian
_______________________________________________