• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    native log
    Last Modify : 13 January, 2011(12:47)
    code
    #include <android/log.h>
    
    makefile
    -llog
    
    definition
    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);
    
    source code
    __android_log_write(ANDROID_LOG_DEBUG, "NATIVE", "YOUR MESSAGE");
    
    native 에서 로그를 찍어야 한다면 저리....

    Comment


    입력하3 1502976650



    Locations of visitors to this page