Conversation
개요레거시 로깅 기능을 제어하는 단일 불린 플래그를 두 개의 독립적인 플래그로 분리하여 서브시스템과 카테고리 로깅을 개별적으로 활성화할 수 있도록 개선했습니다. 헤더 구성 로직도 조건부 기반으로 재작성되었습니다. 변경 사항
예상 코드 리뷰 노력🎯 2 (Simple) | ⏱️ ~10분 시
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
Source/AppleLogger/Implement/LogService.swift (1)
61-69:PrintLogService에서 레거시 플래그 활성화 시 중복된 헤더 정보가 출력됩니다.65번 줄에서 생성한 포맷된 메시지
"[subsystem/category/level] message"가 66번 줄의 extension 메서드로 전달되면, extension이 레거시 플래그 설정에 따라 추가 헤더를 앞에 붙입니다. 레거시 플래그가 모두 활성화된 경우 최종 출력은"[subsystem][category] [subsystem/category/level] message"가 되어 subsystem과 category 정보가 중복됩니다.
OSLogService는 원본 메시지를 그대로 전달하고 os_log가 자체 포매팅을 처리하므로 이러한 중복이 발생하지 않습니다.PrintLogService에서는 자체 포맷 문자열을 제거하거나, 레거시 플래그 활성화 시 자체 포맷을 조정하는 것을 검토하세요.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
Source/AppleLogger/Data/LoggerSetting.swiftSource/AppleLogger/Implement/LogService.swift
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: task-list-completed
🔇 Additional comments (2)
Source/AppleLogger/Data/LoggerSetting.swift (1)
17-21: LGTM! 깔끔한 API 개선입니다.단일 플래그를 두 개의 세분화된 플래그로 분리한 것은 더 나은 제어와 유연성을 제공합니다. 네이밍, 문서화, 기본값 모두 적절합니다.
Source/AppleLogger/Implement/LogService.swift (1)
21-30: LGTM! 헤더 구성 로직이 우수합니다.즉시 실행 클로저를 사용한 헤더 구성은 깔끔하고 효율적입니다. 조건부 로직이 올바르게 구현되었으며 페이지네이션에도 일관되게 적용됩니다.
Summary
isLegacyLogSubsystemEnabledandisLegacyLogCategoryEnabledoptions for more granular controlSabySafedependency from multiple modulesScreenFetcherto properly return promise result in then blockChanges
Logger Settings
LoggerSetting:isLegacyLogSubsystemEnabled: Controls whether to show subsystem in log headerisLegacyLogCategoryEnabled: Controls whether to show category in log headerLog Service
printLogmethod to compute header dynamically based on enabled flags