Hi Mary,
One idea i have and applied in my project.
Do as follows--
1. Create a class with logger and create methods which call nothing but DEBUG()/INFO()/ ... etc.
2. Configure the above created class in log4j.propertis/log4j.xml.
3. Now call the above created methods to log messages other than package com.foo.X.
For full details you may follow
this.
Don't get confused by the subject line used in the given url, what i described above, is available there.
Thanks,
Tanzy.