I am trying to print log messages within core Android framework files. For example, I tried logging messages within MediaRecorderClient.cpp
under frameworks\base\media\libmediaplayerservice\
. I've tried LOGV
, LOGE
, LOGD
, printf
, and __android_log_print
, without any success.
Which command should I use to print log messages?
Log should be used, but it will print to logcat not system print.
Example:
Log.d("filter", example text); // filter is any tag you want to use as filter
You can open logcat in eclipse from window-show view -> other -> android -> logcat