Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure log4j.xml to log only WARN and above logs in JBOSS?

 
lochan serma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to configure my log4j.xml so that it logs only WARN and higher level logs for the FILE appender(server.log) for all categories. However, i would like to leave the default INFO priority to CONSOLE appender as it is.
Any one with helping hands please.

Thank You.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just set the Threshold attribute of the FILE appender to WARN.
 
lochan serma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks bro!!
Did it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic