Atomikos Forum

Loggin configuration problems

I recently upgraded to Atomikos 3.8 but seem to have lost some of the log files that used to be created. The documentation says that the following should be OK:

 <bean id="userTransactionService" class="com.atomikos.icatch.config.UserTransactionServiceImp"
                                init-method="init" destroy-method="shutdownForce">
        <constructor-arg>
            <props>
                <prop key="com.atomikos.icatch.service">com.atomikos.icatch.standalone.UserTransactionServiceFactory</prop>
</props>
                <prop key="com.atomikos.icatch.console_file_name">tm.out</prop>
                <prop key="com.atomikos.icatch.log_base_name">tmlog</prop>
                <prop key="com.atomikos.icatch.console_log_level">DEBUG</prop>
                <prop key="com.atomikos.icatch.enable_logging">true</prop>
        </constructor-arg>
    </bean>

and then in my log4j.xml file I have:

<appender name="atomikos" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="${catalina.base}/logs/atomikos/atomikos-log4j.log"/>
        <param name="MaxFileSize" value="1MB"/>
        <param name="MaxBackupIndex" value="5"/>
        <param name="append" value="false"/>
        </layout>       
</appender>
   
<!-- Atomikos logging -->
<logger name="com.atomikos">
    <level value="DEBUG"/>
</logger>

The log files I get are:

tm2.epoch (binary)
atokikos-log4j.log (always empty)
tmlog.lck (always empty - but probably OK as it is a lck file)
tmlog2.log (binary)

The biggest problem seems to be that if I miss out the last 4 properties in the userTransactionService I don't get any Atomikos files (so they must be needed), and I don't get any output to the atomikos-log4j file.

Before I upgrading to Atomikos 3.8 I used to get a tm.out log that contained useful information about exceptions that were thrown. Now I don't have any of that information at all. Can anyone comment on my configuration?
Gavin DOnald Send private email
Tuesday, February 26, 2013
 
 
Sorry, as is frequently the case I got it working shortly after posting. I am not exactly sure what I did but I think I may have missed of the:

<root>
        ... // Other appenders
        <appender-ref ref="prosoc-atomikos"/>
</root> 

in the log4j.xml file. Nothing to do with Atomikos at all.
Gavin DOnald Send private email
Tuesday, February 26, 2013
 
 
Oops, my mistake. I did get output to the atomikos-log4j.log file but it was output from the main application. Therefore I don't have the actual Atomikos output. So, I could still do with some help on this.
Gavin DOnald Send private email
Tuesday, February 26, 2013
 
 
OK, I finally have it. I was missing slf4j-log4j12-1.5.8.jar from my classpath.
Gavin DOnald Send private email
Tuesday, February 26, 2013
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics