Android打印log的方式

Android framework Java层

import android.util.Log;

Log.d(TAG,“Your Log”);

  

Android C++层

1.#include

ALOGV(“Running %s in=%s out=%s\n”, dex2oat_bin, relative_input_file_name, output_file_name);

2.#include

LOG(WARNING) << “File " << elf_filename << " loaded with dlopen but cannot find its mmaps.”;

3.#include
__android_log_print(ANDROID_LOG_INFO, TAG, “AudioPlayer::RealizePlayer()”);

4.#include
async_safe_format_log(ANDROID_LOG_ERROR, “libc”, “Access denied adding property “%s””, name);

你可能感兴趣的:(Framework,android,android,studio,java)