스프링 로그 분석

Back-End/Spring 2019. 6. 5. 16:17
728x90
반응형

ex) 예시


16:08:00.917 [http-nio-8090-exec-2] INFO [com.example.spring02.HomeController.home:27]-

Welcome home! The client locale is ko_KR.

16:08:01.038 [http-nio-8090-exec-3] WARN [org.springframework.web.servlet.PageNotFound.noHandlerFound:1248]-

No mapping for GET /spring02/include/style.css       //경고성 메시지 출력

16:08:24.343 [http-nio-8090-exec-7] INFO [jdbc.connection.connectionOpened:541]-

1. Connection opened

16:08:24.474 [http-nio-8090-exec-7] DEBUG [jdbc.sqlonly.sqlOccurred:223]-

org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:63)

1. select * from memo order by idx desc 


16:08:24.492 [http-nio-8090-exec-7] INFO [jdbc.sqltiming.sqlTimingOccurred:373]-

select * from memo order by idx desc 

 {executed in 18 msec}

16:08:24.514 [http-nio-8090-exec-7] INFO [jdbc.connection.connectionClosed:568]-

1. Connection closed

16:08:25.000 [http-nio-8090-exec-8] WARN [org.springframework.web.servlet.PageNotFound.noHandlerFound:1248]-

No mapping for GET /spring02/include/style.css     //경고성 메시지 출력



 로그 레벨

설명 

 FATAL

아주 심각한 에러가 발생한 상태를 나타낸다. 

 ERROR

어떠한 요청을 처리하는 중 문제가 발생한 상태를 나타낸다. 

 WARN

프로그램의 실행에는 문제가 없지만, 향후 시스템 에러의 원인이 될 수 있는 경고성 메시지를 나타낸다. 

 INFO

어떠한 상태변경과 같은 정보성 메시지를 나타낸다. 

 DEBUG

개발시 디버그 용도로 사용하는 메시지를 나타낸다. 

 TRACE

디버그 레벨이 너무 광범위한것을 해결하기 위해 좀 더 상세한 이벤트를 나타낸다. 


728x90
반응형
: