Spring Boot: JSON logging with logback

Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=EM5E6qKDl70



Category:
Vlog
Duration: 30:20
7,398 views
87


Configure a Spring Boot application to log differently for each profile being used. Use the logstash encoder to log the output in the JSON format which can then be used by monitoring systems to calculate statistics on how often errors occur.



Link to code: https://github.com/ekim197711/springboot-jsonlogging-logback







Tags:
logback
sl4j
spring
java
logstash
json
logback-spring.xml
spring boot