How to Disable/Redirect ORMLite logging using log4j(2)?

161 views
Skip to first unread message

Matt

unread,
Jun 17, 2015, 1:27:39 AM6/17/15
to ormlit...@googlegroups.com

Whenever I create a table with ORMLITE TableUtils, I get the following logs printed to the console:

[main] INFO com.j256.ormlite.table.TableUtils - creating table 'users'

I have tried to modified my log4j2.xml file to include the following:

<Logger name="com.j256.ormlite.table.TableUtils" level="info" additivity="true">
            <AppenderRef ref="MyAppender"/>
</Logger>

(Also tried to config the name attribute to com.j256.ormlite.logger.Logger and com.j256.ormlite.logger.LocalLogger )

But the logs keep printing to the console.

Any idea? Thanks!

Reply all
Reply to author
Forward
0 new messages