Android framework Java层
import android.util.Log;
Log.d(TAG,“Your Log”);
Android C++层
1.#include <log/log.h>
ALOGV(“Running %s in=%s out=%s\n”, dex2oat_bin, relative_input_file_name, output_file_name);
2.#include <android-base/logging.h>
LOG(WARNING) << “File " << elf_filename << " loaded with dlopen but cannot find its mmaps.”;
3.#include <android/log.h>
__android_log_print(ANDROID_LOG_INFO, TAG, “AudioPlayer::RealizePlayer()”);
4.#include <async_safe/log.h>
async_safe_format_log(ANDROID_LOG_ERROR, “libc”, “Access denied adding property “%s””, name);