tomcat 相关

tomcat配置log4j日志跟踪

lib

log4j.properties

log4j-1.2.17.jar

tomcat-juli-adapters.jar

bin

tomcat-juli.jar

log4j.properties

log4j.rootLogger=info,CATALINA

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender

log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

log4j.appender.CONSOLE.layout.ConversionPattern=[%p]%t-%c-%m%n

#Definealltheappenders

log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender

log4j.appender.CATALINA.File=C:/work/logs/catalina.log

log4j.appender.CATALINA.Append=true

log4j.appender.CATALINA.Encoding=UTF-8

#Roll-overthelogonceperday

log4j.appender.CATALINA.DatePattern='.'yyyy-MM-dd'.log'

log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout

log4j.appender.CATALINA.layout.ConversionPattern=%d[%t]%-5p%c-%m%n

log4j.logger.org.apache.catalina=INFO,CATALINA,CONSOLE

eclipsetomcatserver配置

--解决eclipse启动无法访问localhost主页问题

usetomcatinstallation

publishmodulecontextstoseperatorxml

setJAVA_HOME=C:/java/jdk1.7.0_79

setJRE_HOME=C:/java/jdk1.7.0_79/jre

相关推荐