SpringBoot log configuration file does not take effect because the configuration file is repeated! ! !
SpringBoot projects have a default log configuration file, when the project first started to read the default log configuration file does not read the configuration file resource directory, you need to custom log information to read, then you need to specify a custom configuration file in Springboot profiles
logging.config = classpath: log4j2.properties// provided using log path
And, in fact, the default configuration file with the okay, if you use the default log, then the output level of the console is INFO, you need to log information can be written so persistent, levels are debug, so very convenient
# Output log folder
logging.file=D:/log.log