Look into android.util.Log
. It lets you write to the log with various log levels, and you can specify different tags to group the output.
For example
Log.w("myApp", "no network");
will output a warning with the tag myApp and the message no network.
More Related Contents:
- Why doesn’t logcat show anything in my Android?
- Android Debugging with Logcat and Emulator. Is it possible?
- Filter LogCat to get only the messages from My Application in Android?
- How to enable LogCat/Console in Eclipse for Android?
- Need to handle uncaught exception and send log file
- How do I enable/disable log levels in Android?
- Read logcat programmatically within application
- Android – Set max length of logcat messages
- Couldn’t load memtrack module Logcat Error
- error opening trace file: No such file or directory (2)
- Huawei, logcat not showing the log for my app?
- sendUserActionEvent() is null
- Write android logcat data to a file
- How to filter Android logcat by application? [duplicate]
- Using adb logcat with a real phone (and not the emulator)
- How to detect system information like os or device type
- How to log request and response body with Retrofit-Android?
- How to display long messages in logcat
- Android Studio – ADB Error – “…device unauthorized. Please check the confirmation dialog on your device.”
- android logcat logs chatty module line expire message
- Android desktop log viewer [closed]
- Read logs from all apps on android from within an app for android 4.2+
- Why MediaPlayer throws NOT present error when creating instance of it?
- How to exclude certain messages by TAG name using Android adb logcat?
- Why shouldn’t I use System.out.println() in android
- Android Studio not showing Logcat with Flutter
- How to copy logcat output to clipboard?
- Send Logcat output of an App to an EmailAdress
- What do these Android logcat warnings mean?
- Not all data shown when Android logcat is read programatically