Search code examples
androidlogcatadb

Set the default adb logcat output format


I'm developing in a linux system (Ubuntu 12.04). My favorite output format is -v time, but it is annoying to have to type $ adb logcat -v timeevery time I want to see a log message.

So, my question is: is there a way to configure adb to output time format as default?

I've looking over internet for an environmental variable to set the preferred format, but so far I've no success.


Solution

  • use an alias.

    alias myalias='adb logcat -v time'
    

    (use whatever you prefer instead of myalias. First letters, for instance alvt)

    And put it in your .bashrc