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
Post a Comment