Skip to content

Commit

Permalink
[feat] request ๋กœ๊น… (#140)
Browse files Browse the repository at this point in the history
* fix: ์นด์šดํŠธ ์ˆ˜ ์ˆ˜์ •

* feat: request ์ž„์‹œ๋กœ๊น…
  • Loading branch information
jimin3263 authored Aug 25, 2024
1 parent c0cd1a3 commit 21fe0c1
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.pokit.auth.interceptor

import io.github.oshai.kotlinlogging.KotlinLogging
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.stereotype.Component
import org.springframework.web.servlet.HandlerInterceptor


@Component
class RequestLoggingInterceptor : HandlerInterceptor {
private val logger = KotlinLogging.logger { }

override fun preHandle(
request: HttpServletRequest,
response: HttpServletResponse,
handler: Any
): Boolean {
val uri = request.requestURI
logger.debug { "[Requested URI] $uri" }
return true
}
}

0 comments on commit 21fe0c1

Please sign in to comment.