AOSP standard output for Linux

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  /* log uevent messages if 1. verbose */

#endif

And this is an example of using such a library

INFO("Starting watchdogd\n");
+4
source share
1 answer

init.rc, ///logwrapper xupnpdx/system/bin/logwrapper/system/bin/xupnpdservice

+5

All Articles