java - Log4j Log at all Classes Level -
I'm debugging my Java web application using Log4J, I must log in at the class level. Log4j.properties does not want to have a line for each class in the file because I have hundreds of classes in my application:
log4j.logger.com.my.package.class1 = DEBUG log4j.logger .com.my.package.class2 = DEBUG log4j.logger.com.my.package.class3 = DEBUG
Is there a line setup for everyone to get the login class Number?
All loggers are sorted by the order of the order, so you have a basic logger ("log4j.logger .com.my.package "or root logger) and if you require some override configuration for some hair logger. View More.
Comments
Post a Comment