I have been looking all over and was not able to figure this out. I need to add a custom log pattern for log output. I can do this very easily through a logback.xml file in the resources directory and it works exactly as I want it.
However, I would like to be able to do this throughout he application.yml file if that is possible. Mostly because I would like to externalize it in one place.
I have the normal logging stuff in application.yml as below:
As of Spring Boot 1.2 it's not possible to customize the pattern using
application.yml. There is a feature request open to improve this (https://github.com/spring-projects/spring-boot/issues/1788).