1
我想將atomikos日誌級別設置爲高於INFO。 Tomcat的catalina.out日誌文件寫入很多INFO消息,導致事務花費很長時間才能完成。禁用從catalina.out登錄的atomikos
在啓動期間,catalina.out中包含:
18:11:51,481 INFO [main] AbstractUserTransactionService:16 - USING com.atomikos.icatch.console_log_level = WARN
交易過程中,以下寫入多次catalina.out中。
18:12:05,072 INFO [http-8080-1] CompositeTransactionImp:16 - registerSynchronization (com.a[email protected]7b60ad0) for transaction 127.0.0.1.tm0000100018
18:12:05,072 INFO [http-8080-1] AtomikosConnectionProxy:16 - atomikos connection proxy for Pooled connection wrapping physical connection [email protected]: calling prepareStatement...
18:12:05,073 INFO [http-8080-1] AtomikosConnectionProxy:16 - atomikos connection proxy for Pooled connection wrapping physical connection [email protected]: isClosed()...
18:12:05,073 INFO [http-8080-1] AtomikosConnectionProxy:16 - atomikos connection proxy for Pooled connection wrapping physical connection [email protected]: calling getWarnings...
18:12:05,073 INFO [http-8080-1] AtomikosConnectionProxy:16 - atomikos connection proxy for Pooled connection wrapping physical connection [email protected]: calling clearWarnings...
18:12:05,073 INFO [http-8080-1] AtomikosConnectionProxy:16 - atomikos connection proxy for Pooled connection wrapping physical connection [email protected]: close()...
我曾嘗試在conf/logging.properties中將atomikos級別設置爲WARN,但INFO日誌仍在寫入中。我甚至從logging.properties中刪除了ConsoleHandler,但catalina.out仍在寫入。
在我的webapp目錄中,我更新了log4j.xml以包含以下內容,但仍然獲取日誌。
<logger name="com.atomikos">
<level value="ERROR"/>
</logger>