I want to develop a log frame work for my application .The things i want to achieve is
- Trace the log of my application
- Write the log to a text file while tracing the log
- Filter the log genrated by my application
- Stop the log trace if any error/exception happens after writing the exception to text file
First of all i want to know is this possible ?? I guess by using service we acheive this . if i am wrong please correct me
I refer this project for achieving my needs https://github.com/androidnerds/logger
In this project they are using AIDL to create a service to record the logs .But the saving of file occur only when ever the intent for that .
Seriously i'm new to this AIDL process . The point that confuses me is the sample project doesn't give any permission in manifest to WRITE FILES to storage .But it's able to do that . How did they achieve that??
Even i had gone through these questions
- How do I get the logfile from an Android device?
- Programmatically get log cat data
- Write android logcat data to a file
- Save Data of LogCat in android
- How to save LogCat contents to file?
- How to write entire Logcat in to sdcard?
- Filter LogCat to get only the messages from My Application in Android?
But nothing working for me. So please suggest a way to achieve this