Atomikos Forum |
|
I am running AtomikosTransactionsEssentials-3.8.0 and I am trying to use Log4J as logging mechanism.
In my classpath I have: slf4j-api-1.6.4.jar slf4j-log4j12-1.6.4.jar log4j-1.2.16.jar and I don't have other slf4j* jar files in the classpath. This same setup works fine for another application (Jackrabbit). In my log4j.xml fileI have added: <logger name="atomikos"> <level value="error" /> </logger> But this doesn't work as I am seeing INFO messages. I also see this message at startup: [ Slf4jLogger.java:16 :INFO ] Using Slf4J for logging. and this may be correct as the setup should be SLF4J --> LOG4J Please also consider that I see this message (the default logging level, WARN, is used): [ Slf4jLogger.java:16 :INFO ] USING com.atomikos.icatch.console_log_level = WARN but this doesn't seem to be reflected in the output where I have a lot of INFO messages. What am I doing wrong? Thanks Jacopo
Is there any way to configure the logging when using the atomikos-osgi bundle at all?
Looking at the code for com.atomikos.logging.LoggerFactory your still using Class.forName() in order to look up the existence of various classes, which totally breaks in OSGi land. I was just looking at the source to see how the OSGi bundle is built but there seems to be zero sign of it in the source tree/build.xml? |