-
Notifications
You must be signed in to change notification settings - Fork 4
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
Timestamped index to buffer #65
Comments
Would this make more sense as a logging feature, tied/related to #43? I guess the logging would derive from some sort of |
I've tried tightly coupling stdio with logging once before, in pywikibot, and it is working there (or was last I looked, but I am not active there for over a year). It has some pleasing benefits, like this feature being 'free', but it required some nasty initialisation sequences. I suspect that it might be less troublesome here when there isnt a real console attached, and also require less hacks because of no py2 support. Worth trying again; I'll do a POC based on pywikibot and we can evaluate it. |
Seems to me the "easiest" way to do it is to have the streams actually represented by an underlying list of ~annotated chunks of text, as was done with one of the entities over at Logging could then occur around the various interactions with the data structure... read/write/etc. I think dealing with arbitrary seeks within a given "message unit" could be hairy, if such were desired to be implemented, though. |
#64 (comment) mentions merging stdout and stderr to reflect that both typically appear on the same user console, interleaved.
Another similar feature is timestamping the activity occurring on the "console", so those timestamps can be shown to the user, or timing info used in test logic.
The text was updated successfully, but these errors were encountered: