분석 로그를 1MB 롤링과 14일 보관 기준으로 정리한다
- app/perf/audit/workflow 로그에 공통 RollingTextLogStore를 적용해 날짜별 파일이 1MB를 넘지 않도록 오래된 내용을 밀어내며 저장한다. - 공통 로그, 성능 로그, 감사 로그는 14일 보관으로 맞추고 워크플로우 상세 로그는 기존 설정을 따르되 최대 14일 상한을 적용한다. - RollingTextLogStoreTests 3건을 추가해 파일 크기 상한과 오래된 파일/날짜 디렉터리 정리 동작을 검증한다. - 검증: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify_logroll\\ -p:IntermediateOutputPath=obj\\verify_logroll\\ 경고 0 / 오류 0 - 검증: dotnet test src/AxCopilot.Tests/AxCopilot.Tests.csproj -c Release -v minimal --filter RollingTextLogStoreTests -p:OutputPath=bin\\verify_logroll_tests\\ -p:IntermediateOutputPath=obj\\verify_logroll_tests\\ 통과 3 (기존 WorkspaceContextGeneratorTests.cs(76) nullable 경고 1건 유지)
This commit is contained in:
@@ -79,7 +79,7 @@ public partial class App : System.Windows.Application
|
||||
// ─── 워크플로우 상세 로그 초기화 ─────────────────────────────────────
|
||||
WorkflowLogService.IsEnabled = settings.Settings.Llm.EnableDetailedLog;
|
||||
WorkflowLogService.RetentionDays = settings.Settings.Llm.DetailedLogRetentionDays > 0
|
||||
? settings.Settings.Llm.DetailedLogRetentionDays : 3;
|
||||
? Math.Min(settings.Settings.Llm.DetailedLogRetentionDays, 14) : 14;
|
||||
WorkflowLogService.IsRawLogEnabled = settings.Settings.Llm.EnableRawLlmLog;
|
||||
|
||||
// ─── 대화 보관/디스크 정리 (제품화 하드닝) ───────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user