While I was installing a Java application that uses Log4j (via Spring Boot Logging), I was told that I can configure the logging level for all packages used in the application by including the following line in the file application.properties
logging.level.*=ERROR
Where ERRORcan there be any logging level that I wanted to use.
However, when I changed the level from one value to another, no matter what value I used, I found that the log messages before appear in the log DEBUG.
In the end, I found that using specific package names, I could control the minimum level for registration. That is, it logging.level.org.orgname.appname=ERRORwill do what I wanted.
Are log level properties designed to support wildcards of type "*"?
source
share