I got this working only by editing frameworks/base/core/jni/
android_util_Log.cpp

added
#define LOG_NDEBUG 0

and
int res = __android_log_write((android_LogPriority)priority, tag,
msg);
instead of line
int res = __android_log_buf_write(bufID,
(android_LogPriority)priority, tag, msg);

and clean rebuild of android.


On Feb 7, 6:03 pm, extrapedestrian <[email protected]> wrote:
> I run logcat from init.rc
> Android boots and displays log to console, but all the log comes from
> cpp files.
> For example: LOGI("SurfaceFlinger is starting");
>
> Logs from java files are not displayed. I tried putting Log.d and
> Log.e to various Java files and functions Im pretty sure they are
> called, but I don't see those logs.
>
> How do I enable this logging?

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to