feat: add debug logging and --verbose flag (M4.2)#48
Open
YoungJinJung wants to merge 1 commit intomainfrom
Open
feat: add debug logging and --verbose flag (M4.2)#48YoungJinJung wants to merge 1 commit intomainfrom
YoungJinJung wants to merge 1 commit intomainfrom
Conversation
- Add internal/log package with structured JSON logging to ~/.config/unic/logs/unic.log, size-based rotation (10MB, 3 old files), and pretty stderr output with colored levels and tree-formatted attrs - Add --verbose/-v global CLI flag to enable debug-level logging - Instrument config resolution, auth flow, AWS repository creation, and all AWS service API calls with debug/info logging - Use \r\n line endings in pretty handler for raw-mode terminal compat - Update README with --verbose usage
4 tasks
choisungwook
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add structured debug logging and a
--verbose/-vCLI flag for troubleshooting (M4.2).internal/logpackage: JSON logging to~/.config/unic/logs/unic.logwith size-based rotation (10MB, keep 3 old files), and a pretty stderr handler with colored levels and tree-formatted key-value attributes--verbose/-vglobal flag enables debug-level output to both file and stderrRelated Issues
Closes #33
Validation
make test— all tests pass (7 new tests ininternal/log)make build— compiles cleanlyunic --verboseproduces aligned, colored debug output on stderr and JSON entries in the log fileChecklist