Member-only story
Android Log Analysis

As an Android developer, all of you know Logs analysis is a phase of development and we encounter it from time to time.
But Log Analysis is the main challenging thing for code maintainer or Support Engineer.
Once Any Android product launched in the market and customers start using it. Then real scenario bugs/issues start coming and it is the main Job for Support Engineer/Project maintenance engineer to analyze the Bug/issue with provided set of logs.
First We start with the type of Log available on Android Eco-system:-
- Application Log
- System Log
- Event Log
- Radio Log
Android logging system consists of:
- a kernel driver and kernel buffers for storing log messages
- C, C++ and Java classes for making log entries and accessing the log messages.
- Logcat (a standalone program for viewing log messages )
- DDMS (ability to view and filter the log messages from the host machine)
Android Log Buffer/container
- main — the main application log
- events — for system event information
- radio — for radio and phone-related information
- system — a log for low-level system messages and debugging

What Log message contains:-
Each message in the log consists of
- A tag indicating the part of the system or application that the message came from
- A timestamp (at what time this message came)
- The message log level (or priority of the event represented by the message) and
- The log message itself(detail description of error or exception or information etc)
What Each Log Type Contains:-
1. Application log
- use android.util.Log class methods to write messages of different priority into the log