[Switch] can see the program with the log init.rc inside logwrapper


Some programs playing with printf log, in which init.rc, these log can not be displayed because the log is output to / dev / null. This problem can be solved by logwrapper, as follows:

 service adbd /system/bin/logwrapper /sbin/adbd

     disabled

Is to logwrapper added to the front of the server program.

Further, logwrapper the buffer is a circular buffer, so if the dump log slow, then the latter overwrite the previous log log.

Guess you like

Origin blog.csdn.net/ll148305879/article/details/91953099