6

I deployed a spring-boot application on CentOS 6.5.
The application is started by command 'service app start'.
Below is content of app.conf.

JAVA_HOME=/xxx
LOG_FOLDER=/xxx

I am confused that how to roll log file daily.
There is no logback.xml or any other logback configuration in application.properties.

John
  • 365
  • 2
  • 5
  • 15

1 Answers1

7

You can place new logback.xml and write your appenders accordingly and place it in classpath, the application.properties will automatically look for it.

For more info please refer doc
For appenders it is already answered here

Niranjan Kumar
  • 1,438
  • 1
  • 12
  • 29
  • Thank you! I misunderstood that the log file configured in `app.conf` is the default log file of logback. Now I find out that it is output of console. I added logback-spring.xml and config with RollingFileAppender. It worked! – John May 25 '17 at 01:12