-
Notifications
You must be signed in to change notification settings - Fork 0
Add new logging system #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a comprehensive logging system for LessUI, replacing the previous ad-hoc logging approach with a unified, well-documented solution for both C code and shell scripts.
Key Changes:
- New C logging API (
log.h/log.c) with automatic timestamps, errno translation, and log rotation - Shell script logging library (
log.sh) for boot/install scripts - Standardized log file naming convention (
.txt→.logacross all platforms)
Reviewed Changes
Copilot reviewed 54 out of 54 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| workspace/all/common/log.{h,c} | Core logging implementation with thread-safe file rotation |
| workspace/all/common/log_internal.h | Internal structures for logging system |
| tests/unit/all/common/test_log.c | Comprehensive unit tests (498 lines) |
| workspace/all/{minui,minarch}/minui.c, minarch.c | Integrated new logging system, removed \n from messages |
| workspace/all/common/{utils,api}.c | Updated file I/O functions with error logging |
| workspace/*/keymon/{makefile,keymon.c} | Added log.c compilation, imported log.h |
| skeleton/SYSTEM/*/paks/MinUI.pak/launch.sh | Renamed log files from .txt to .log |
| skeleton/SYSTEM/common/log.sh | New shell logging library with rotation |
| docs/LOGGING.md | Comprehensive 881-line documentation |
| makefile.{qa,dev} | Added log.c to test builds and dev environment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 60 out of 60 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fa5cfc8 to
223d57c
Compare
No description provided.