0

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?

il_guru
  • 8,383
  • 2
  • 42
  • 51
Skip
  • 6,240
  • 11
  • 67
  • 117
  • What about standart logging framerworks? ( log4j , slf4j, commons-logging , vanilla javaq logging... ) – Konstantin Pribluda Aug 23 '12 at 07:34
  • I would like to group my log-output by themes. Each group should be displayed separately, as LogCat does, by displaying them in separate tabs. As far as i know - none of standard frameworks can this. – Skip Aug 23 '12 at 08:18
  • you need just log framework in your application (there is a ton of them) and almost every one of them is configurable so you can influence where log message goes. It seems that you mix up your application and IDE where you are developing it. – Konstantin Pribluda Aug 23 '12 at 13:00

2 Answers2

2

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.

Adam Monos
  • 4,287
  • 1
  • 23
  • 25
0

I think what you want to use is something like log4j or tinylog

andreasg
  • 1,070
  • 8
  • 8
  • 1
    Nope. It's not about the log framework that generates log, but about the tool to interactively watch those logs during development. – Bachi Jun 20 '14 at 13:12