I'm compiling in debug mode a certain .so
in the Android-Native layer which by default outputs to the default logging file.
However, I do not want this data to be saved to the logs in the first place because it will overwhelm the logging file; I plan on streaming it off of the device.
POSSIBLE SOLUTIONS
- Modify the
.so
code to output the debug info to NOT the logging file.
Definitely the most straightforward way but I'd prefer not to do this since this'll require modification of the.so
. I agree this should be trivial modification but I have a requirement to modify the.so
as little as possible. - Is there a way to create an alias for a file, pipe all writes to it through my app (like
tee
) and selectively allow writes to the real file? - Is there a built-in
logcat
filtering tool that can do this filtering for me with some regexs?