HTTP 요청 메시지 로그

JeongHoHyun·2025년 2월 4일

Spring Boot

목록 보기
3/7

HTTP 요청 메시지 로그

logging.level.org.apache.coyote.http11=trace

  • HTTP 정보를 콘솔창에서 볼 수 있게 해주는 용도
  • application.properties 에 작성해서 사용한다.
  • Spring Boot 3.2 이후부터는 trace를 사용해야한다. 이전은 debug
2025-02-04T14:17:59.316+09:00 DEBUG 47357 --- [servlet] [nio-8080-exec-1] o.a.coyote.http11.Http11InputBuffer      : Before fill(): parsingHeader: [true], parsingRequestLine: [true], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position(): [0], byteBuffer.limit(): [0], end: [0]
2025-02-04T14:17:59.317+09:00 DEBUG 47357 --- [servlet] [nio-8080-exec-1] o.a.coyote.http11.Http11InputBuffer      : Received [GET /hello?username=%EC%A0%95 HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Cache-Control: max-age=0
sec-ch-ua: "Not A(Brand";v="8", "Chromium";v="132", "Google Chrome";v="132"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7

]
profile
Java Back-End 2022.11.01 💻~ing

0개의 댓글