2017-02-10 4 views

答えて

1

アンドロイドクロムにログを印刷するにはいくつかの方法、および次の2つの流れの方法を試してみてください。

1. The first way:  
//Add the head file 
#include <cutils/log.h> 
#define XLOGC(...) android_printLog(ANDROID_LOG_DEBUG, "Your Tags", __VA_ARGS__) 

//use the XLOGC to print the log 
XLOGC("Your log message"); 


2. The second way: 
//Add the head file 
#include "base/logging.h" 
LOG(INFO) << "Your log message"; 
関連する問題