Tomcat – Does JBoss (or tomcat) log 503 errors to the access log
jbosstomcat
I've enabled the access log in JBoss. I see that it logs 404's, but will it log 503 errors as well?
Thanks!
Best Answer
Depends. If the error is caused because JBoss is not available (service is stopped), then the error is generated and logged by Apache (or the web server you are using) and nothing will be logged by JBoss. If the error is generated by JBoss, it will be logged by both JBoss and web server.
We had the same problem for a file being written by log4j. The solution was to set the property "Append" for the FileAppender to "true". After this change, we have not seen this problem with files having NUL when rotated by an external program like logrotate.
Best Answer
Depends. If the error is caused because JBoss is not available (service is stopped), then the error is generated and logged by Apache (or the web server you are using) and nothing will be logged by JBoss. If the error is generated by JBoss, it will be logged by both JBoss and web server.