Coder Social home page Coder Social logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I've faced this problem too.
As Android only savs 64kb logs of the system.
if the interval is so short,there should be duplicates logs,
while some logs missed if the interval is too long.
I first used a command "logcat -c" to clear the buffer after every
command of fetching logs which had a short interval,
but it didn't work.In my opinion,it's because of the permission,
because it works on adb.
and then a got another solution:save the last log's time tag of the
latest saved logs,and filter current logs by the time.

Original comment by [email protected] on 10 Jul 2011 at 6:29

from alogcat.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
for power consumption reasons, the og save feature isn't sitting in the 
background reading the log and keeping a bufffer. it works by waking up every 
so often and recording a snapshot of the log.

to avoid duplicates, it would need to look at existing log entries, by 
re-reading the file, and find the last written log entry. to do this, it would 
need to parse every log entry line to extract the time. 

the other option would be to keep a process running, always, in the background 
that is recording every log entry and copying it into the file.

neither of these options is nice on the battery. perhaps there's a better way, 
but it's not obvious to me at this time.

Original comment by [email protected] on 13 Jul 2011 at 3:59

  • Changed state: Accepted

from alogcat.

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.