c - Android AOSP linux service standard output -


im developing own watchdog linux service (init.rc) android image im cooking.

these linux services use log libraries log.h show output of such services. have tried track these libraries in order find log output dumped.

i havent found neither in android logcat nor /proc/kmsg or dmesg

this log.h library linux services started in init.rc:

#ifndef _init_log_h_ #define _init_log_h_  #include <cutils/klog.h>  #define error(x...)   klog_error("init", x) #define notice(x...)  klog_notice("init", x) #define info(x...)    klog_info("init", x)  #define log_uevents        0  /* log uevent messages if 1. verbose */  #endif 

and example of using such library

info("starting watchdogd\n"); 

to display log service in init.rc can start service /system/bin/logwrapper example service xupnpdx /system/bin/logwrapper /system/bin/xupnpdservice


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -