Springboot project started, using the Druid data source, log4j error
2018---£ º21.168 1496 ---[ Restartedmain] o.hibernate.annotations.common.version : hcann000001:hibernate Commons Annotations {5.0 . 1 for logger (druid.sql.Connection). Log4j:warn Initialize the log4j system Properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Workaround:
Configure the log4j log profile log4j.properties
log4j.rootlogger=debug, stdout, Rlog4j.appender.stdout =org.apache.log4j.consoleappenderlog4j.appender.stdout.layout = org.apache.log4j.patternlayoutlog4j.appender.stdout.layout.conversionpattern =%5p-%m%NLOG4J.APPENDER.R = Org.apache.log4j.rollingfileappenderlog4j.appender.r.file = Firestorm.loglog4j.appender.r.maxfilesize = 100kblog4j.appender.r.maxbackupindex =1 Log4j.appender.r.layout = Org.apache.log4j.patternlayoutlog4j.appender.r.layout.conversionpattern =%p%t%c-%m%n#log4j.logger. Own package name =debuglog4j.logger.com.sxd =debug
View Code
"Log4j" Springboot project started, using the Druid data source, log4j error Log4j:warn Please initialize the log4j system properly.