java - Exclude some classes from being logged in EMAIL appender in log4j -
i using properties file configuration log4j.
log4j.rootlogger=info, a1, email log4j.appender.email.threshold = error
i created email appender errors sent email. there exception occures on 60000 times day , exclude logging.i added line :
log4j.logger.java.lang.illegalstateexception=off
but still getting logged. there other way of excluding it, maybe filters ?
Comments
Post a Comment