fblog icon indicating copy to clipboard operation
fblog copied to clipboard

Request: make fblog usable as a library

Open mcginty opened this issue 1 year ago • 4 comments

I've been using fblog and loving it, but typically like to build my own diagnosis tools for any complicated project. It would be incredible to have an fblog crate so I could use the features of fblog inside of other tools with custom settings!

mcginty avatar Oct 16 '24 19:10 mcginty

Hi. I'm not sure if I want to commit to a stable API. Is there something specific you want to do that cannot be done by simply spawning fblog as an external process?

bomgar avatar Oct 16 '24 20:10 bomgar

Hey @bomgar, sorry for the late response!

I wouldn't necessarily be looking for a stable API, and I could certainly use fblog as a subprocess, but one of the main advantages of offering a library alongside the binary is that I wouldn't need to work out how to package a fblog binary along with my own - I could just link it all into one portable binary.

mcginty avatar Nov 18 '24 23:11 mcginty

I would merge it if you open a PR for that.

bomgar avatar Nov 19 '24 15:11 bomgar

Sweet! I'll try to tackle it when I have a free moment :).

mcginty avatar Nov 19 '24 16:11 mcginty