Is there a way to replace the standard Android magazine?

Is there a way to somehow intercept calls to the standard input in android and perform some other action?

You can usually get some kind of log in desktop Java, so there are ways to set up a different logging handler / implementation. However, Android seems to have a static Log call, and I could not find any information about changing the default behavior.

I understand that I can track the device’s log via ADB, but I would like to have different behavior when launching applications on the device that it selects (for example, following a certain instruction when the program starts).

+5
source share
4 answers

AedonEtLIRA, , / . Prasanta Paul "MLog": http://prasanta-paul.blogspot.com/2010/07/custom-logger-for-android.html

/ . , , .

+4

, Log , MyLog, Log, , .

, .

+3

MLog, @Darrell, Android , :

, logback (next-gen log4j) API ( ), microlog - ( ... , ). SLF4J , logback, log4j, jul .

MLog, android.os.util.Log ( "" , ).

+3

Since it Logis final, I think you will have to write your own logging system and implement this if you want to change something.

+2
source

All Articles