Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

whats the significance of /dev/log/main and /dev/log/system in android logcat?

I usually get these two lines when i type adb lolcat in command line

--------- beginning of /dev/log/main
D/dalvikvm( 2586): GC_CONCURRENT freed 651K, 7% free 12236K/13063K, paused 7ms+4ms
D/dalvikvm( 2586): GREF has increased to 201
W/AudioHardwareALSA( 2071): badstate and do recovery.....
--------- beginning of /dev/log/system
I/ActivityManager( 2159): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.mms/.ui.ConversationList bnds=[909,207][1011,300]} from pid 2586

What is the significance of these two things in logcat output, anything important it signifies ?Thank You

like image 367
Charan Pai Avatar asked Dec 31 '12 12:12

Charan Pai


People also ask

What is Android logcat?

Android Logcat is a part of application development to check results, errors,s, etc in an Android studio. Android app developers can thus get all logs and messages from their remote (or emulated on the virtual device) device.

What is the Android logging system?

The Android logging system is a set of structured circular buffers maintained by the system process logd. The set of available buffers is fixed and defined by the system. The most relevant ones are: main, which stores most application logs, system, which stores messages originating from the Android OS, and crash, which stores crash logs.

How do I view the logs in logcat?

By default, logcat displays just the log messages for your app running on the device. To change this default, see how to filter logcat messages. The Logcat toolbar provides the following buttons: Clear logcat : Click to clear the visible log. Scroll to the end : Click to jump to the bottom of the log and see the latest log messages.

What are app logs and why should I check them?

Until someone mentions checking the logs. Log files are automatically created to store a record of all the events from your application. Almost everything you use creates or adds to a log file. From the operating system your computer runs to the apps on your phone, they all make log files.


1 Answers

http://elinux.org/Android_Logging_System says:

The system log was created to keep system messages in a separate buffer (outside of '/dev/log/main') so that a single verbose application couldn't overrun system messages and cause them to be lost.

like image 177
Jan Schejbal Avatar answered Nov 15 '22 08:11

Jan Schejbal