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