code
[code]
#include <android/log.h>
[/code]
makefile
[code]
-llog
[/code]
definition
[code]
typedef enum android_LogPriority {
ANDROID_LOG_UNKNOWN = 0,
ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
ANDROID_LOG_VERBOSE,
ANDROID_LOG_DEBUG,
ANDROID_LOG_INFO,
ANDROID_LOG_WARN,
ANDROID_LOG_ERROR,
ANDROID_LOG_FATAL,
ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
} android_LogPriority;
int __android_log_write(int prio, const char *tag, const char *text);
[/code]
source code
[code]
__android_log_write(ANDROID_LOG_DEBUG, "NATIVE", "YOUR MESSAGE");
[/code]
native 에서 로그를 찍어야 한다면 저리....
[code]
#include <android/log.h>
[/code]
makefile
[code]
-llog
[/code]
definition
[code]
typedef enum android_LogPriority {
ANDROID_LOG_UNKNOWN = 0,
ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
ANDROID_LOG_VERBOSE,
ANDROID_LOG_DEBUG,
ANDROID_LOG_INFO,
ANDROID_LOG_WARN,
ANDROID_LOG_ERROR,
ANDROID_LOG_FATAL,
ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
} android_LogPriority;
int __android_log_write(int prio, const char *tag, const char *text);
[/code]
source code
[code]
__android_log_write(ANDROID_LOG_DEBUG, "NATIVE", "YOUR MESSAGE");
[/code]
native 에서 로그를 찍어야 한다면 저리....
'Android' 카테고리의 다른 글
used intent (0) | 2013.10.08 |
---|---|
dialog window (0) | 2013.10.08 |
ByteTokenizer (0) | 2013.10.08 |
byte to string (0) | 2013.10.08 |
android thread (0) | 2013.10.08 |