簡體   English   中英

如何在Android的JNI中實現調試日志

[英]How to implement debug logs in Android's JNI

我正在嘗試在android代碼中的以下文件中實現調試日志。

frameworks / base / services / jni / com_android_server_BatteryService.cpp

我已經嘗試過LOGE和__android_log_write(),但是事情不起作用。 我也曾嘗試在文件系統中創建一個文本文件,然后將其寫入,但是這也沒有用。

#define LOG_TAG "BatteryService"
#include "utils/Log.h"

/* some code*/

LOGE("Mine logging is better than yours.");

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM