Search code examples
androidlogcatandroid-logcat

How can I remove my package name from Logcat?


My package name is getting in the way of me easily reading my logcat messages. I have to scroll way to the right to see anything. Each line is preceded with:

08-07 00:52:58.237 16332-16332/com.mycompay.mypackage.mypackage/System.out:

How can I get rid of the package name there? And what is the 16332-16332 doing there? Can I get rid of that too?


Solution

  • For Custom Logcat You should read Write and View Logs with Logcat

    Every Android log message has a tag and a priority associated with it. The tag of a system log message is a short string indicating the system component from which the message originates .

    The log message FORMAT is:

    date time PID-TID/package priority/tag: message
    

    PID stands for process identifier and TID is thread identifier; they can be the same if there’s only one thread.