• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with lo4j and rootLogger  RSS feed

Oliver Brocker
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use log4j in my application. It's configured thru an log4j.properties file.At the beginning of my application I set the log4j log level with a command line parameter to DEBUG.

I do that because I want see my apps's debug messages. That works BUT the result is that I also get all DEBUG messages from the 3rd party - in that case the debug messages from iBATIS.

Of course I know (I read in the log4j docu) that all loggers inherit from the rootLevel so the behavior is not amazing (or is it?).
But then how can I set the log level in my application independed to the iBATIS framework?
[ August 07, 2008: Message edited by: Oliver Brocker ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!