Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
🔧➕loggerの設定がおかしかったので直した.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanai10a committed Jan 19, 2021
1 parent 1720a65 commit de7b022
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@

# 環境変数を設定するscript
env.sh

**/*.log
5 changes: 5 additions & 0 deletions cli_kt/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ dependencies {
// slf4j implementation
implementation("org.apache.logging.log4j:log4j-api:2.14.0")
implementation("org.apache.logging.log4j:log4j-core:2.14.0")
implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.14.0")

implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.1")
implementation("com.fasterxml.jackson.core:jackson-core:2.12.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.1")

// Redis
implementation("redis.clients:jedis:3.4.1")
Expand Down
27 changes: 27 additions & 0 deletions cli_kt/app/src/main/resources/log4j2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Configuration:
status: debug
dest: "./console.log"

Appenders:
Console:
name: CONSOLE
target: SYSTEM_OUT
PatternLayout:
Pattern: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %c{3} - %msg%n"

Loggers:
Logger:
- name: cobot00.gs.first
additivity: false
level: warn
AppenderRef:
- ref: CONSOLE
- name: cobot00.gs.first.second
additivity: false
level: info
AppenderRef:
- ref: CONSOLE
Root:
level: debug
AppenderRef:
ref: CONSOLE

0 comments on commit de7b022

Please sign in to comment.