MyCATApache / Mycat-Server

GNU General Public License v2.0
9.5k stars 3.85k forks source link

log4j2日志问题 #2227

Open zouxuewei opened 5 years ago

zouxuewei commented 5 years ago

log4j2.xml配置 <?xml version="1.0" encoding="UTF-8"?>

%d{yyyy-MM-dd HH:mm:ss.SSS} %5p P --- [%15.15t] %-40.40logger{39} : %m%n

控制台显示日志不管怎么操作都没有日志打印出来:

SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/%e5%a4%96%e7%bd%91%e6%9c%ba-5/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/%e5%a4%96%e7%bd%91%e6%9c%ba-5/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.5/log4j-slf4j-impl-2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] log4j:WARN No appenders could be found for logger (io.mycat.backend.datasource.PhysicalDBPool). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. MyCAT Server startup successfully. see logs in logs/mycat.log

junwen12221 commented 5 years ago

在wrapper.log里面?

zouxuewei commented 5 years ago

eclipse 的Console控制台。