Skip to content

Commit

Permalink
Merge pull request #15 from averak/feature/14-use-logback
Browse files Browse the repository at this point in the history
構造化ログを出力するようにした
  • Loading branch information
averak authored Oct 28, 2023
2 parents 447b893 + 35d0b75 commit 1814b05
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
implementation(libs.quarkus.hibernate.orm)
implementation(libs.quarkus.arc)
implementation(libs.quarkus.config.yaml)
implementation(libs.quarkus.logging.json)
implementation(libs.kotlin.stdlib.jdk8)

// GCP
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ quarkus-google-cloud-spanner = "io.quarkiverse.googlecloudservices:quarkus-googl
quarkus-hibernate-orm = { module = "io.quarkus:quarkus-hibernate-orm", version.ref = "quarkus" }
quarkus-junit5 = { module = "io.quarkus:quarkus-junit5", version.ref = "quarkus" }
quarkus-kotlin = { module = "io.quarkus:quarkus-kotlin", version.ref = "quarkus" }
quarkus-logging-json = { module = "io.quarkus:quarkus-logging-json", version.ref = "quarkus" }
quarkus-resteasy-reactive = { module = "io.quarkus:quarkus-resteasy-reactive", version.ref = "quarkus" }
quarkus-resteasy-reactive-jackson = { module = "io.quarkus:quarkus-resteasy-reactive-jackson", version.ref = "quarkus" }
spock-core = { module = "org.spockframework:spock-core", version.ref = "spock" }
Expand Down
20 changes: 15 additions & 5 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,25 @@ quarkus:
application:
name: "gsync"
version: "1.0.0-SNAPSHOT"
# datasource:
# db-kind: spanner
# jdbc:
# url: jdbc:cloudspanner:/projects/${quarkus.google.cloud.project-id}/instances/${quarkus.google.cloud.instance-id}/databases/${quarkus.google.cloud.database-id}
# driver: com.google.cloud.spanner.jdbc.JdbcDriver
log:
console:
json: true
google:
cloud:
project-id: ${GOOGLE_CLOUD_PROJECT_ID:gsync}
instance-id: ${GOOGLE_CLOUD_SPANNER_INSTANCE_ID:gsync}
database-id: ${GOOGLE_CLOUD_SPANNER_DATABASE_NAME:gsync}
spanner:
emulator-host: http://localhost:9020

"%dev":
quarkus:
log:
console:
json: false

"%test":
quarkus:
log:
console:
json: false
Empty file.

0 comments on commit 1814b05

Please sign in to comment.