I use third-party banks that add their own logs to their Java application log file, I do not want to add these third-party logs to my log file, since the log file is very awkward and confusing.
I know this method, log4j.logger.org.springframework.jdbc.core.JdbcTemplate = OFF to disable logging in this particular org.springframework.jdbc.core.JdbcTemplate package in my lo4j.properties, but I have a lot of problem such cans added to my application, and therefore, you do not want to write manually for each package associated with the can.
Also, if new banks are added again, I have to add this configuration to the log4j.properties file.
source
share