Created
November 24, 2023 17:27
-
-
Save JoseManuelMunozManzano/d08bc2cad794e265d8c1bcdc42a8192a to your computer and use it in GitHub Desktop.
Spring Boot - Cambiar color de logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Añadir al pom | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-logging</artifactId> | |
| </dependency> | |
| // Indicar estas propiedades en el fichero properties | |
| // El nivel de logging se verá en rojo en este caso | |
| spring.output.ansi.enabled=always | |
| logging.pattern.level=%clr(%5p){red} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment