How can I automatically clear logcat output before each run in Android Studio?
Asked Answered
V

3

36

I'm using Android Studio 1.0.2 and can't find the way to clear logcat output before each Run/Debug.

Is there any Gradle task (similar to adb logcat -c) that I can create a Run/Debug configuration for in order to clear output? Or is there simpler way to clear the logcat?

Vitric answered 3/1, 2015 at 12:38 Comment(0)
T
92

This can be customized for each existing run configuration you have defined. Instructions for enabling this feature are given below:


Android Studio 1.4 and later

Check the checkbox located at:

Run -> Edit configurations... -> Miscellaneous tab -> "Clear log before launch"


Android Studio 1.3 and earlier

Check the checkbox located at:

Run -> Edit configurations... -> Logcat tab -> "Clear Log before launch"


Trinity answered 3/1, 2015 at 12:43 Comment(0)
C
2

In Run menu select Edit Configuration select your App configuration and in Log Cat tab check Clear log before launch.

Case answered 3/1, 2015 at 12:47 Comment(0)
S
2

Android Studio 2.0: Run --> Edit configuration --> Select your app --> Miscellaneous --> Clear Log before launch

Shooter answered 6/12, 2015 at 21:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.