Atomikos Forum

cannot change log level with slf4j

Hi,

we're using transaction essentials 3.5.3

As long as we did not have slf4j in our classpath, setting

log4j.logger.atomikos=ERROR

in log4j.properties would rid us of the annoying commit messages:

INFO: commit() done (by application) of transaction 136.173.28.178.tm0000700016
Jul 21, 2009 3:09:59 PM com.atomikos.diagnostics.Slf4jConsole println
INFO: createCompositeTransaction ( 300000 ): created new ROOT transaction with id 136.173.28.178.tm0000800016


But since using slf4j, this configuration does not work anymore and the console is polluted with this messages.

How to disable them?
piero de salvia Send private email
Tuesday, July 21, 2009
 
 
Hi,

What is the value of your com.atomikos.icatch.console_log_level parameter?

Thanks
Guy Pardon Send private email
Monday, July 27, 2009
 
 
I've got the same problem here with the JDK logging system.
Playing with the com.atomikos.icatch.console_log_level does not change anything (I can see this is taken into account in the log displayed).

Each action generate loads of log from "Slf4Console", in INFO level. Putting "com.atomikos.level=WARNING" in my logging.properties did not work either.

What is the solution or the workaround ?
Thanks in advance.

Regards
Vincent NICOLAS Send private email
Wednesday, August 12, 2009
 
 
I've finally found the issue.

The Slf4Console defines its logger as :
private static final Logger log =
        LoggerFactory.getLogger ( "atomikos" );

Hence, the logger has to configure the level like this :
atomikos.level=WARNING


To have a cleaner logger declaration, it should ressemble this :
private static final Logger log =
    LoggerFactory.getLogger(Slf4jConsole.class.getName());

Regards,
Vincent NICOLAS.
Vincent NICOLAS Send private email
Thursday, August 13, 2009
 
 

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

Other recent topics Other recent topics