How to Print Only Error in Console in Micronaut or Spring Application
To update the logging configuration in your application to avoid displaying info and debug logs in the console, you can modify the logback.xml or logback-spring.xml file. This configuration file allows you to control various aspects of logging, including log levels and log destinations. Here’s a step-by-step guide on how to achieve this: 1. Locate Your…