从Eclipse启动的Tomcat使用其属性中指定的配置。默认情况下,未指定日志记录配置。
因此,
open Eclipse -> select Tomcat -> Properties单击,然后
Open Launchconfiguration在
Arguments选项卡中添加
-Djava.util.logging.config.file="your-tomcat-folderconflogging.properties"-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager。



