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

(nice-to-have) user code log rotation #47

Closed
kierdavis opened this issue Aug 5, 2019 · 1 comment · Fixed by #65
Closed

(nice-to-have) user code log rotation #47

kierdavis opened this issue Aug 5, 2019 · 1 comment · Fixed by #65

Comments

@kierdavis
Copy link
Member

Currently log.txt is rewritten every time the user code is run, obliterating any previous contents. It wouldn't be too difficult to instead write a new file on every run (e.g. logs/TIMESTAMP.log), perhaps also updating a symlink logs/latest.log to point at the most recent file. This makes it easy for a user to look back over the results of previous runs.

@RealOrangeOne
Copy link
Member

Unfortunately, using a timestamp may be misleading, as the chances of the clock on the Pis being correct is rather low.

Also, symlinks aren't especially cross-platform, especially with Windows.

We might be able to write something which splits the log stream between 2 files, a log.txt and logs/4.txt.

@WillB97 WillB97 linked a pull request Jul 29, 2023 that will close this issue
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 a pull request may close this issue.

2 participants