enable LOGD in android native code

 

#undef LOG

#include "utils/Log.h"

 

 

 

 

reference:http://www.mailinglistarchive.com/html/[email protected]/2010-04/msg00038.html

 

 

recently i tried to see logs in native WebKit
but in the end found nothing in ddms

finally i found the cause is that
in WebCore/config.h , it includes <wtf/Assertions.h>
which defines LOG macro

therefore the LOG{VDIEW} macro will be redirected to WTFLog
instead of android_log

try to do #undef LOG before you including "utils/Log.h" or "cutils/
log.h"

and try not to include them before including "config.h"

 

 

你可能感兴趣的:(android,include,reference,2010)