I am developing my own watchdog linux service (init.rc) for an Android Im image.
These linux services use some log libraries, such as log.h, to display the results of such services. I tried to track these libraries to find where this log output is being downloaded.
I did not find anything in the android logarithm, nor / proc / kmsg or dmesg
This is the log.h library for linux services running 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
#endif
And this is an example of using such a library
INFO("Starting watchdogd\n");
source
share