Klaytn Service chain log level 설정
Klaytn Service chain 설정
Log Level
Klaytn의 service chain 의 log level은 다음과 같습니다.
- 0 :
silent
그 어떤 Log도 기록하지 않습니다. - 1 :
error
Error log 만을 기록합니다. - 2 :
warn
Warning log 까지 기록합니다. - 3 :
info
Info log 까지 기록합니다. - 4 :
debug
Debugging 관련 log 까지 기록합니다 - 5 :
detail
모든 log를 기록합니다.
kscnd 설정
💡
모든 node에 적용해야 합니다.
kscnd.conf
파일을 수정합니다.
1. debug
→ error
> vi ./kscnd.conf
# before
...
VERBOSITY=4
...
# after
...
VERBOSITY=1 # 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail
...
2. 서비스를 재시작 해줍니다.
> ./kscnd restart
Shutting down kscnd: OK
Starting kscnd: Success to start node.
3. 기존 로그 파일은 지워줍니다.
> rm {$kscn_data_dircetory}/logs/kscnd.out
rm: remove 일반 파일 `/home/root/kscn/data/logs/kscnd.out'? y