Skip to content

Commit

Permalink
logback 테스트
Browse files Browse the repository at this point in the history
logback 테스트
  • Loading branch information
junhyun1001 authored Jan 16, 2024
2 parents ed32d0a + 63cd79a commit 08ef4c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/umc/forgrad/controller/TestController.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
package umc.forgrad.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import umc.forgrad.apipayload.ApiResponse;
import umc.forgrad.converter.TestConverter;
import umc.forgrad.dto.TestResponse;

@RestController
@Slf4j
public class TestController {

@GetMapping("/test")
public ApiResponse<TestResponse.TestDto> test() {
log.info("info log");
log.warn("warn log");
log.error("error log");
return ApiResponse.onSuccess(TestConverter.toTestDto());
}

Expand Down

0 comments on commit 08ef4c4

Please sign in to comment.