Default logging file for spring boot application

后端 未结 4 568
我寻月下人不归
我寻月下人不归 2020-12-24 12:20

I have set the logging level in the spring boot application in application.yml as: logging.level.com.Myapplicationname=DEBUG

The application is packaged and deplo

4条回答
  •  没有蜡笔的小新
    2020-12-24 12:38

    As alexbt said, you cannot use both properties at the same time (logging.path and logging.file) because Spring Boot will ignore both.

    But you can use logging.file with a path encoded.

    Example: logging.file=/path/to/logs/your_logfile.log

提交回复
热议问题