Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j : How To set Min And Max Level Messages

Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Well i am going to use log4j with in such a way so that it should log
the messages in between given levels.

For example-- i want to create a log file, say myLog.txt, in such a way it will contain only messages of level info and warn.

By using threshold property we can set the minimum level, here info, but how about setting max level?

Please note i can not use log4j.xml as per per my project architecture otherwise there is option of setting levelMin and levelMax.

Any cognitive help will be appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic