正常的日誌目錄應該是/var/log/tomcat,而在tomcat7當中日誌全都跑到/var/log/messages當中了。php
緣由及解決方法:linux
Tomcat when used with official Arch Linux packages uses systemd's journalctl for startup log. This means that files /var/log/tomcat7/catalina.err and /var/log/tomcat7/catalina.out are not used. Other logs such as access logs and business logs defined in /etc/tomcat7/server.xml as Valve will still by default end up in /var/log/tomcat7/.
To restore upstream style logging, copy systemd file /lib/systemd/system/tomcat7.service to /etc/systemd/system/tomcat7.service and change both SYSLOG for the absolute paths of log files.
因此將/lib/systemd/system/tomcat.service
copy至/etc/systemd/system/tomcat.servicetomcat
參考markdown