Sometime back i see a mail liek this, you can give a try ( you can search) --------------------------------------------------------------------------------------------------------------------------- (1) Include the header file <utils/Log.h> #include <utils/Log.h> (2) Define the logger tag LOG_TAG #undef LOG_TAG #define LOG_TAG "MyWebKitLog" (3) Write the log statement LOGE("This is my log statement on line %d",__LINE__); (4) If not already done, add libutils and libcutils to the list of LOCAL_SHARED_LIBRARIES in the webkit Android.mk.
Note: Similar to LOGE, there are other logger definitions as well, like, LOGV, LOGI, LOGW, LOGF, LOGS, etc. For details about the implementation and usage, please refer the logcat module at http://android.git.kernel.org/?p=platform/system/core.git;a=blob;f=logcat/logcat.cpp;h=d9ca131b64fcc3d1774068dcf6a5e34d05782a3f;hb=master ---------------------------------------------------------------------------------------------------------------------------------------------------- On Sat, Mar 21, 2009 at 2:13 AM, Ravi Ramachandra <androido...@gmail.com>wrote: > All, > How can we enable LOG messages in Webkit. > > I wanted to enable some debug prints using log utility of Android in Webkit > I added the following statements in my code. > > #define LOG_TAG "webkit" > include <utils/Log.h> > > And the following line to test > LOGV("Constructor CachedImage.cpp"); > > I am unable to get the logs. Should I enable with the following define. I > even added liblog as one of the shared libraries during compilation. > > #define LOG_NDEBUG 0 /* Is this required to get logs??? */ > > regards, > Ravi > Texas Instruments > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---