Skip to content

spring-boot: tomcat: if management port is different from the app port, the app's access.log goes to /tmp/tomcat.xxxxx.port #1581

@simonso

Description

@simonso

spring-boot 1.1.6
http://stackoverflow.com/questions/23596157/spring-boot-tomcat-access-logs
The issue exists since 1.1
Steps to reproduce

  1. in application.properties, define management port = 7081
  2. in application.properties, define the app port to be anything but 7081
  3. in application.properties, set the server.tomcat.base=/home/mydir
  4. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions