This repository was archived by the owner on Mar 15, 2025. It is now read-only.
p6Spy SQL 로깅 #17
Closed
kimminkyeu
started this conversation in
메모장
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
배경
현재 SQL문 출력 방식이 읽기가 힘들더군요.
찾아보니 ? 물음표 부분에 값을 넣어주는 방법이 있어서 적용하였습니다.
🟦 p6spy 적용 전
🟦 p6spy 적용 후
p6spy가 sql 로그를 인터셉트하여 sql 로깅 포맷 변경하여 [?] 표기에 값을 직접 표기합니다.
p6spy 가 DB 커넥션 1개를 계속 잡는 것 같은데 좀 더 찾아봐야 할 것 같습니다.
성능적으로 부담이 되는가?
는 여기저기 말이 다 달라서, 운영 환경에서 측정해서 보면 될 것 같구요.로그에 값이 전부 들어가서, 운영 환경에선 보안상 문제 발생할 수 있습니다. 이는 설정 방법이 있으니 배포시 참고하면 될 것 같습니다.
🟦 적용 결과 스샷
Intercept SQL Logging with P6Spy - baeldung
P6Spy 깃허브
P6Spy 활용해 쿼리 로그 확인하기
Beta Was this translation helpful? Give feedback.
All reactions