Standalone c++ log dump

is there any standalone C++ code that could parse/dump log data from .BIN files (like ?
the approach is using on mobile devices
i was tried to port this code for Android and iOS but it has many dependencies that’s not running on mobile phones
also a JavaScript parser could help.