You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in application.properties, define management port = 7081
in application.properties, define the app port to be anything but 7081
in application.properties, set the server.tomcat.base=/home/mydir
Start the spring-boot project with tomcat as the web server
expected: access log goes to /home/mydir
actual: after a few days, the access.log will suddenly appears in /tmp/tomcat.xxxx.port_number
I have cloud deployment that needs to do log rotation. Prefer to centralize everything to one single directory.
The text was updated successfully, but these errors were encountered:
If the actuator endpoints are configured on a different port then there
are some settings in the main ServerProperties that we would like to
re-use (e.g. the access log). The easiest way to do that is to just
configure the management server using the same ServerProperties instance
and then overwrite the things that are different (and stored in
ManagementServerProperties).
Fixesgh-1581
Hi Dave,
When would 1.1.7 be released?
If I pick up 1.17 for my production, my log rotation will have one less extra /tmp/tomcat.xxxx.port directory to worry about.
I'll tell my ops team to script log rotation differently (for production).
Please let me know the timeframe. Sincerely
Simon
This issue is still reproducible for me on Mac OS X 10.10.1 (Yosemite), using spring-boot-starter-web 1.2.1.RELEASE.
If I don't set the server and management ports, it logs properly to the basedir specified in the properties. If I do change the values the access logs go to very strange folders in the tmp directory, such as /tmp/prl-1e6aeb63-596a-4be9-b4ec-653c8e6a3c98 logs/access_log.2015-01-26.log
spring-boot 1.1.6
http://stackoverflow.com/questions/23596157/spring-boot-tomcat-access-logs
The issue exists since 1.1
Steps to reproduce
expected: access log goes to /home/mydir
actual: after a few days, the access.log will suddenly appears in /tmp/tomcat.xxxx.port_number
I have cloud deployment that needs to do log rotation. Prefer to centralize everything to one single directory.
The text was updated successfully, but these errors were encountered: