Comments (2)
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.
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)
- Enhancment request: search button as shortcut for filter HOT 2
- RFE: Allow another activity to invoke alogcat with settings HOT 3
- save is oblivious of mount error HOT 1
- logging in sleep/standby mode?? HOT 2
- Create a widget
- Option to prevent screen turning off / going into standby HOT 2
- Not tracking all logs. HOT 6
- Stock music player not playing any media files HOT 1
- user-defined Save location
- to many GC_EXTERNAL_ALLOC log messages. HOT 5
- Triggering saving to the SDCard with intents opens a security hole HOT 1
- make localizable
- Allow donations without proprietary software HOT 3
- Feature request: Toast shows active filter (patch included) HOT 3
- Feature request: User can enter a comment when saving (maybe optionally via settings) HOT 4
- Will not work on Android 4.1 Jelly Beans HOT 5
- logcat not displayed in jelly bean 4.1.1 HOT 7
- Make it movable to SD card HOT 1
- Saved logs are not visible over MTP until a media scan is performed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alogcat.