The Android logging system provides a mechanism for collecting and viewing system debug output. It consists of kernel buffers that store log messages and APIs/classes for making and accessing log messages. Log messages can be viewed from an Android device or host machine using the logcat command. There are APIs/macros for logging from Java and native C/C++ programs.