Spring Boot: JSON logging with logback

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

Thanks, Mike,
finally, I have a better understanding of all those logging libraries:)))

magzhanabdibayev
Автор

nice tutorial.... if I wanna add more attributes in the json output then is there any other options

VikramKumar-oulh
Автор

How do you feel about including a logstash dependency, for generic Json output? It might be nit-picking, but in my project we're not using logstash - and I'd rather rely on "official" code from the logback libraries to achieve json out.

glennbech
welcome to shbcf.ru