Re: Challenge: Build a Color-Coded Log Viewer for Phix/Euphoria (Inspired by chat.exw)
- Posted by xecronix 4 weeks ago
- 411 views
Mini Update
I went the UDP route. Logging is blazing fast now, and none of the weird timing issues I had before are showing up. I added a limit to the size of a single log message: 8 KB max. Anything longer gets truncated. In practice, most of my log messages are between 50 and 300 bytes, so 8 KB should be more than enough.
I also built a log viewer. It's threaded and very responsive. It's a standalone .exe, not a DLL. It can handle 1,000 log messages up to 8 KB each in near real-time. If messages come in faster than every 200 ms, the viewer buffers up to 1,000 of them and renders them in batches every 200 ms. I'm working on a static-view mode next, for reviewing log files longer than 1,000 entries.