convert to gitea
This commit is contained in:
48
apps/rust_gyber/config/log4rs.yaml
Normal file
48
apps/rust_gyber/config/log4rs.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
# config/log4rs.yaml
|
||||
|
||||
appenders:
|
||||
console:
|
||||
kind: console
|
||||
target: stdout
|
||||
encoder:
|
||||
# 파일명({f})과 라인번호({L}) 추가
|
||||
pattern: "{d(%Y-%m-%d %H:%M:%S)} [{h({l:<5})}] {({t})} [{f}:{L}] - {m}{n}"
|
||||
|
||||
info_file:
|
||||
kind: file
|
||||
path: "logs/info.log"
|
||||
append: true
|
||||
encoder:
|
||||
# 파일명({f})과 라인번호({L}) 추가
|
||||
pattern: "{d(%Y-%m-%d %H:%M:%S)} [{l:<5}] {({t})} [{f}:{L}] - {m}{n}"
|
||||
filters:
|
||||
- kind: threshold
|
||||
level: info
|
||||
|
||||
error_file:
|
||||
kind: file
|
||||
path: "logs/error.log"
|
||||
append: true
|
||||
encoder:
|
||||
# 파일명({f})과 라인번호({L}) 추가 (기존에도 있었음)
|
||||
pattern: "{d(%Y-%m-%d %H:%M:%S)} [{l:<5}] {({t})} [{f}:{L}] - {m}{n}"
|
||||
filters:
|
||||
- kind: threshold
|
||||
level: error
|
||||
|
||||
root:
|
||||
level: info # 또는 debug 등 필요 레벨
|
||||
appenders:
|
||||
- console
|
||||
- info_file
|
||||
- error_file
|
||||
|
||||
# 특정 모듈에 다른 로깅 레벨 적용 가능 (선택 사항)
|
||||
# loggers:
|
||||
# gyber::db: # 예시: gyber::db 모듈은 DEBUG 레벨까지 출력
|
||||
# level: debug
|
||||
# appenders:
|
||||
# - console
|
||||
# - info_file
|
||||
# - error_file
|
||||
# additivity: false # true면 root 설정도 상속받음, false면 이 설정만 적용
|
||||
Reference in New Issue
Block a user