How to exclude a package from a log4j appender

Viewed 15948

I have configuration file (log4j.properties), see the packages below and and question at the end.

  com.bitguiders.package1
  com.bitguiders.package2
  com.bitguiders.package3
  com.bitguiders.package4
  com.bitguiders.package5
  com.bitguiders.package6
  com.bitguiders.package7

I want to log everything except this package

 com.bitguiders.package2 

How can i do that ? (Assume i have 50 packages and still i wanted to exclude one or two pacakges)

1 Answers
Related