Skip to content

Commit

Permalink
Switch to logback
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Jun 19, 2024
1 parent fcbd0db commit 8e2c591
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ plugins {

description = "Spring Boot Simple smoke test"

configurations.all {
exclude module: "spring-boot-starter-logging"
}
//configurations.all {
// exclude module: "spring-boot-starter-logging"
//}

dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-log4j2"))
// implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-log4j2"))
implementation("jakarta.validation:jakarta.validation-api")
implementation("org.hibernate.validator:hibernate-validator") {
exclude group: "javax.validation"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.springframework.boot.logging.structured.StructuredLoggingFormat=\
smoketest.simple.CustomFormat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring.application.name=simple
test.name=Phil
sample.name=Andy
# TODO MH: Remove
logging.structured.file=logfmt
#logging.structured.file=logfmt
#logging.file.name=/home/mhalbritter/tmp/log.txt
logging.structured.console=ecs
#logging.structured.console=custom
#logging.structured.console=smoketest.simple.CustomFormat

0 comments on commit 8e2c591

Please sign in to comment.