Skip to content
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

Adding feature to log to SD Card #708

Merged
merged 16 commits into from
Jan 2, 2025

Conversation

No-Signal
Copy link
Collaborator

What

This PR implements logging messages to an SD Card where available

Why

This will help to diagnose issues when an emulator reboots as the log is persisted

How

This is an extension to the sdcard methods to add a second buffer for logs which are sent from the logger and written to the SD Card on the second CPU core

Copy link
Owner

@dalathegreat dalathegreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@No-Signal No-Signal force-pushed the feature/Log_To_SDCard branch from 241f3cb to 362cab7 Compare December 31, 2024 16:09
@No-Signal No-Signal force-pushed the feature/Log_To_SDCard branch from 362cab7 to e2eae8f Compare January 1, 2025 13:22
mvgalen and others added 13 commits January 2, 2025 13:41
- Improve performance by removing unnecessary copies.
- Refactor code to remove duplication of time printing code.
- Improve performance by removing unnecessary copies.
- Refactor code to remove duplication of time printing code.
- Timestring needs to be one larger to fit string + NULL character
- snprintf and friends return the amount of bytes that would have been written (if the buffer was large enough), not the actual number of bytes, therefore take the minimum of both values
Copy link
Collaborator Author

@No-Signal No-Signal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great thanks!

@dalathegreat dalathegreat merged commit f138f97 into dalathegreat:main Jan 2, 2025
52 checks passed
@No-Signal No-Signal deleted the feature/Log_To_SDCard branch January 3, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants