I'm working on a tracing subscriber that allows visualizing logs in a web gui. I currently have the frontend ready with a Browse...
button where people can load their log files, but that is not necessarily the smoothest experience so I wanted to crate a subscriber to avoid saving the log to a file first.
Now I'm wondering if I include a webserver in a lib, it would be nice if it has all the frontend included, so users don't have to manually download that and click a connect button. Basically, when you run it it says "To inspect the log, open localhost:xxxx" on stdout at the start of the progam/test.
So I need to deliver the assets of the frontend in some way when the library is being compiled, in a cross platform manner.
How would you go about that?
The other option would be a cargo integration like cargo tracing_prism --port xxxx
which starts an http server and then the tracing subscriber just sends the log entries to that.