#undef LOG
#include "utils/Log.h"
reference:http://www.mailinglistarchive.com/html/android-developers@googlegroups.com/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平台上的WebKit模块中遇到的日志显示问题及其解决方案。由于配置文件中的宏定义冲突导致日志无法正常输出,通过调整头文件的包含顺序及取消宏定义解决了这一问题。
1094





