Skip to content

Commit

Permalink
feat: LogTestController 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Aug 1, 2024
1 parent 9274145 commit 87f4e39
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions api/src/main/kotlin/com/mashup/dojo/LogTestController.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.mashup.dojo

import io.swagger.v3.oas.annotations.Hidden
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@Hidden
@RestController
@RequestMapping("/log")
class LogTestController {

companion object {
private val logger: Logger = LoggerFactory.getLogger(LogTestController::class.java)
}

@GetMapping("/warn")
fun logWarn() {
logger.warn("WARN TEST!!")
}

@GetMapping("/error")
fun logError() {
logger.error("ERROR TEST!")
}
}

0 comments on commit 87f4e39

Please sign in to comment.