[Feature] Serilog 구조적 로깅 설정 #22

Closed
opened 2026-02-09 06:08:08 +00:00 by seonkyu.kim · 0 comments
Owner

설명

Serilog를 활용한 구조적 로깅을 설정한다. Console/File Sink, X-Request-ID 미들웨어, 환경별 로그 레벨 분리를 포함한다.

📌 참조: Documents/ProgramSetup.md §7 (파이프라인 순서 3~4번) 및 §8.3 (RequestIdMiddleware) 필독

체크리스트

  • appsettings.json Serilog 섹션 설정
    • Console Sink (Development)
    • File Sink (Rolling, 일별)
  • SPMS.API/Middlewares/RequestIdMiddleware.cs — X-Request-ID 헤더 발급/반환
  • UseSerilogRequestLogging() 내장 미들웨어 등록 (파이프라인 순서 4번)
  • Program.cs에 Serilog 호스트 빌더 설정
  • 환경별 로그 레벨 분리 (Development: Debug, Production: Warning)
  • 빌드 성공 확인
## 설명 Serilog를 활용한 구조적 로깅을 설정한다. Console/File Sink, X-Request-ID 미들웨어, 환경별 로그 레벨 분리를 포함한다. > **📌 참조**: `Documents/ProgramSetup.md` §7 (파이프라인 순서 3~4번) 및 §8.3 (RequestIdMiddleware) 필독 ## 체크리스트 - [x] appsettings.json Serilog 섹션 설정 - Console Sink (Development) - File Sink (Rolling, 일별) - [x] `SPMS.API/Middlewares/RequestIdMiddleware.cs` — X-Request-ID 헤더 발급/반환 - [x] `UseSerilogRequestLogging()` 내장 미들웨어 등록 (파이프라인 순서 4번) - [x] Program.cs에 Serilog 호스트 빌더 설정 - [x] 환경별 로그 레벨 분리 (Development: Debug, Production: Warning) - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
Medium
Status
Available
Type
Feature
labels 2026-02-09 06:08:22 +00:00
seonkyu.kim self-assigned this 2026-02-09 06:08:23 +00:00
seonkyu.kim added this to the Phase 1: 인프라 & 공통 모듈 milestone 2026-02-09 06:08:23 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-09 06:11:16 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-09 06:13:42 +00:00
Sign in to join this conversation.
No description provided.