Skip to main content

Posts

Showing posts with the label Android Reading and Writing Logs | LogCat | Android LogCat Information

Android Reading and Writing Logs | LogCat | Android LogCat Information

Reading and Writing Logs.The Android logging system provides a mechanism for collecting and viewing system debug output.
Logcat dumps a log of system messages, which include things such as stack traces when the emulator throws an error and messages that you have written from your application by using the Log class.
You can run LogCat through ADB or from DDMS, which allows you to read the messages in real time.
The Log class.Log is a logging class that you can utilize in your code to print out messages to the LogCat. Common logging methods include:v(String, String) (verbose)d(String, String) (debug)i(String, String) (information)w(String, String) (warning)