Why log4j was giving me too much information

At one point when I was configuring log4j output to a log file, the log file was getting way too much information.  Instead of only logging the com.ontsys.advice and org.springframework.transaction.jta categories, it was logging ‘most everything, it seemed.

It was a simple thing to fix: I just needed to remove my AdviceLogger appender-ref from the <root> loggers down at the bottom of jboss-log4j.xml.

Advertisements

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s