Atomikos Forum

how to disable console log on tm.out

Hi all,

I am using atomikos 3.3.1, spring 2.5.5, ibatis 2.3.3, slf4j.

I would like to log only on my own application.log, instead of having double log, the 1st on the default tm.log, the 2nd on application.log.

This is not a big trouble, but I prefer to have a single log. Is it possible to disable the logging on tm.out?


I would appreciate any suggestion.
dr46 Send private email
Wednesday, July 30, 2008
 
 
Hi,

Setting com.atomikos.icatch.console_file_limit to 0 will tell the TM that the log file can only be 0 bytes large.

That won't prevent the file from being created though. You can eventually try to set the com.atomikos.icatch.output_dir property to /dev/null (*nix) or NUL (windows) which might end up with the TM throwing the logs away.

If you want the Atomikos logs to appear in your application log, you should just put SLF4J on your classpath (both the slf4j-api-1.4.3.jar and the slf4j-<your-log-api>-1.4.3.jar jars) which are included in the released ZIP file.

I would not advise you to disable the logs as in case you post a support question for a problem you hit the very first thing we'll ask for is the logs file.

Ludovic
Ludovic Orban Send private email
Wednesday, July 30, 2008
 
 
Hi,

using the following setting 
<prop key="com.atomikos.icatch.output_dir">NUL</prop> throws an exception that stops the execution of my application.

the following setting
<prop key="com.atomikos.icatch.console_file_limit">0</prop>
somehow works fine, but print some information (ES.settings)
Any way I allow atomikos to log on my application.log using slf4j.
dr46 Send private email
Thursday, July 31, 2008
 
 

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

Other recent topics Other recent topics