전자정부프레임워크 사용해서 로그 깨끗하게 나오게하고 있는데 2개씩 나와서 확인해보니깐,
DB 커넥션 할때
DriverClass를 net.sf.log4jdbc.DriverSpy 사용하고
Url에 프로토콜 log4jdbc로 접근
이 상태에서 이미 log4j를 띄워주는데
프록시로 또 로그를 띄워주고있으니깐 당연히 중첩돼서 2개 뜨는거였음
전:
Globals.mysql.DriverClassName=net.sf.log4jdbc.DriverSpy
Globals.mysql.Url=jdbc:log4jdbc:mysql://{IP:PORT}/{DB}?characterEncoding=utf-8&allowMultiQueries=true
Globals.mysql.UserName = {ID}
Globals.mysql.Password = {PW}
후:
Globals.mysql.DriverClassName=org.mariadb.jdbc.Driver
Globals.mysql.Url=jdbc:mariadb://{IP:PORT}/{DB}?characterEncoding=utf-8&allowMultiQueries=true
Globals.mysql.UserName = {ID}
Globals.mysql.Password = {PW}
'개발 > 트러블 슈팅' 카테고리의 다른 글
No bean named '' available (0) | 2023.06.21 |
---|---|
톰캣 자식 컨테이너를 시작 중 실패했습니다. / 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]을(를) 시작하지 못했습니다. (0) | 2023.06.21 |
[MYBATIS] JSON_VALUE로 SELECT 받아올경우 오류 (0) | 2022.11.10 |
[JS] fetch 컨트롤러에서 받기 (0) | 2022.10.27 |
[Centos] https://vault.centos.org/6.10/os/x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connection (0) | 2022.10.07 |