Home > Back-end >  Springboot introduced log4j2 use LoggerFactory. GetLogger cannot read configuration files
Springboot introduced log4j2 use LoggerFactory. GetLogger cannot read configuration files

Time:01-01

Springboot
Protected the static final Logger Logger=LoggerFactory. GetLogger (MessagePush. Class);
Print log cannot be output to the log4j. Properties configuration file

But
. Private static org, apache log4j Logger Logger=org. Apache.. Log4j Logger. GetLogger (MessagePush. Class);
Print log can be normal output

CodePudding user response:

Because of the front with commonlog, may reference their own slf4j, without using log4j,
  • Related