Android Logcat: How do I output a log message with a TAB character?

tom_mai78101 picture tom_mai78101 · Jul 16, 2012 · Viewed 7.1k times · Source

In Java, System.out.printf("\t") gives a TAB character in the Console.

I wanted to have that function in the Logcat DDMS, by outputting a TAB character in my log message.

public void testLogMessage(){
    Log.d("Test", "TAB: " + "\t" + "AAAAAAAA" + "\t" + "AAAAAAAAA");
}

However, in the Logcat, I do not see the TAB character in the A's.

If possible, how should I output the TAB character in the Logcat? Thanks in advance.

EDIT:

Probably I didn't make my question clear. I want to show up the TAB control character on this:

Logcat

I just could not get the TAB character to show up. Thanks in advance.

Answer

tom_mai78101 picture tom_mai78101 · Jul 31, 2012

If no one is able to prove that TAB characters can be outputted to Logcat, then I guess it means Logcat isn't able to display TAB characters.

I do not have a workaround for the TAB characters, nor do I wish to continue fixing this problem.