javaandroidlogcatandroid-logcat

How to use Android's LogCat within a Java project?


I have a Java Project, where i would like to use Android LogCat's debug-tagging functionality.

Is it somehow possible for Java projects? (not Android, but pure Java)

EDIT:

As stated below, it is not possible. Is there any alternative for Java?


Solution

  • No. Logcat is formatting the output of the ADB (the Android Debug Bridge). Since you can't connect the ADB to plain java projects, there is no way for you to use Logcat in such a fashion.

    Unless ofcourse you get the Android Eclipse plugin's source code and modify it to your needs.