GithubHelp home page GithubHelp logo

rogcat as a library about rogcat HOT 5 CLOSED

tekjar avatar tekjar commented on August 24, 2024
rogcat as a library

from rogcat.

Comments (5)

flxo avatar flxo commented on August 24, 2024

Hi. rogcat is mainly a wrapper that provides convenience features that the plain logcat doesn't have. It not intended to be used as a library and probably not very portable because it has tons of dependencies. I'm not sure if I fully understand what a log shipper is. Do you want to read the buffers and send it somewhere? This basically running logcat and read it's stdout.

Is your service written in Rust? If yes you can get some inspiration:

If you need to parse the logcat format, have a look at the parser. For calling and capturing locats output see runner.rs.

The individual modules of rogcat are that small that it's not really been worth separating them into crates, but of course this is possible...

from rogcat.

tekjar avatar tekjar commented on August 24, 2024

Do you want to read the buffers and send it somewhere?

Yeah

This basically running logcat and read it's stdout.

Yeah. But I'm not sure of the costs of reading output from logcat vs reading from buffers directly.

from rogcat.

flxo avatar flxo commented on August 24, 2024

Talking to logd directly is probably cheaper. See liblog and logcat. All the headers you need should be part of the NDK.
Otherwise just call logcat and capture. You may want to use the dump flag`.

from rogcat.

flxo avatar flxo commented on August 24, 2024

This seems to be clarified. @tekjar comment if you disagree. :-)

from rogcat.

tekjar avatar tekjar commented on August 24, 2024

You clarified my question. Thanks :)

from rogcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.