Skip to content

refactor: 미사용 import 제거 및 @Slf4j로 로거 선언 통일#60

Merged
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
dovob213:refactor/slf4j-logger-unify
Jul 7, 2026
Merged

refactor: 미사용 import 제거 및 @Slf4j로 로거 선언 통일#60
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
dovob213:refactor/slf4j-logger-unify

Conversation

@dovob213

@dovob213 dovob213 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

수정 사유 Reason for modification

소스를 수정한 사유가 무엇인지 체크해 주세요. Please check the reason you modified the source. ([X] X는 대문자여야 합니다.)

  • 버그수정 Bug fixes
  • 기능개선 Enhancements
  • 기능추가 Adding features
  • 기타 Others

수정된 소스 내용 Modified source

검토자를 위해 수정된 소스 내용을 설명해 주세요. Please describe the modified source for reviewers.

EgovSampleServiceImpl에서 두 가지를 정리했습니다.

  1. 미사용 import 제거: #58에서 생성자 주입으로 전환된 이후 사용되지 않고 남아 있던 jakarta.annotation.Resource import를 제거했습니다.
  2. 로거 선언을 @Slf4j로 통일: 프로젝트 내 다른 클래스(EgovSampleController, EgovSampleExcepHndlr, EgovSampleOthersExcepHndlr)는 모두 Lombok @Slf4j를 사용하는데, 이 클래스만 유일하게 LoggerFactory.getLogger(...) 수동 선언을 사용하고 있어 @Slf4j로 통일했습니다. 보일러플레이트 2줄(import 포함 4줄)이 줄고 로깅 스타일이 일관되도록 했습니다.

동작 변경은 없습니다(로거 이름 동일: 클래스 FQCN 기준).

JUnit 테스트 JUnit tests

테스트를 완료하셨으면 다음 항목에 [대문자X]로 표시해 주세요. When you're done testing, check the following items.

  • JUnit 테스트 JUnit tests
  • 수동 테스트 Manual testing

테스트 브라우저 Test Browser

테스트를 진행한 브라우저를 선택해 주세요. Please select the browser(s) you ran the test on. (다중 선택 가능 you can select multiple) [X] X는 대문자여야 합니다.

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera
  • Internet Explorer
  • 기타 Others

테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video

테스트 전과 후의 스크린샷 또는 캡처 영상을 이곳에 첨부해 주세요. Please attach screenshots or video captures of your before and after tests here.

스크린샷 2026-07-04 오후 8 19 35

글 등록 시 로거 이름이 기존과 동일하게 [egovframework.example.sample.service.impl.EgovSampleServiceImpl](클래스 FQCN)로 출력되어, @Slf4j 전환 후에도 로깅 동작이 동일함을 확인했습니다.
(채번 전 id=<null> → 채번 후 id=SAMPLE-00115 두 번의 log.debug 정상 출력)

@eGovFrameSupport

Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

@eGovFrameSupport eGovFrameSupport merged commit 6ffb9c5 into eGovFramework:main Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants