90

It is really hard to follow up Android logcat output all in a same color.

Is there any way to change the log colors?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59
  • Have been barred from asking questions (for reasons unknown to me). So I ask one through the comments: How can you set the text color for the expression "Log" in the code itself (so you can clearly see where you put logs in your code)? – Common Sense Sep 02 '21 at 08:46
  • Unfortunately I don't believe there is such an option in the IDE to change logs color in the code. Maybe you can find a plugin that allows Regex coloring! – Mohsen Mirhoseini Sep 11 '21 at 06:32

4 Answers4

269

I know that using solid black color logcat in Android Studio is awful!!!

Here is my best practice colour codes that you can use for changing the face of you logcat in Android Studio to make it more useful.

Go to Android Studio Preferences and search for logcat and 'Save As' your own scheme:

Assert: 9C27B0

Debug: 2196F3

Error: F44336

Info: 4CAF50

Warning: FFC107

Android Studio Logcat Default Colors

Android Studio Logcat Darcula Colors

All colors are picked carefully from google Material Design palette and can help you with more readability in both Default and Darcula theme:

sharing is caring :)

Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59
  • 2
    Any suggestions for *Darkula* theme? – Shaishav Oct 12 '16 at 08:29
  • 5
    currently I am using the same color scheme in Darkula theme, and it is wonderful. Give it a try! :) – Mohsen Mirhoseini Oct 12 '16 at 08:35
  • 4
    Wow...after using it for a few days, it has been a blessing! I never knew what I was missing. – Shaishav Oct 23 '16 at 08:27
  • Toggle between "No Filters" and then back to "Show only selected application" to get the colors to update. I had an annoying highlighting that was sort of stuck until I did this to get it to clear. – Jim Andreas Jul 03 '17 at 18:53
  • 2
    I would suggest to use `B87BD5` for *Assert* if you think `9C27B0` is a bit dark on the Darcula theme. – Aba Feb 06 '18 at 04:04
  • 3
    I've created file ready to import for Android Studio (https://github.com/SmithWhiteFirst/AndroidStudioLogcatDraculaMaterial) – deadfish Jan 21 '19 at 10:35
24

In addition to @Monsen Mirhoseine's answer, I exported his scheme to easier import. You can do it by downloading this file, and then selecting to avoid typing every color.

                        Import Scheme screenshoot

crgarridos
  • 8,758
  • 3
  • 49
  • 61
  • 1
    FYI, Before doing this, beware that the "import scheme" option does not work locally for each Color Scheme tab, (as I thougth initially). Importing the file will not only write new "Android Logcat" color features, but will also erase all other custom presets under the "Color Scheme" banner, including all your custom language colors T.T (I am not sure if other options are also overwritten). – Delark Jul 29 '21 at 23:39
1

You can download this files filesCustomAndroid and copy in

Mac: /Users/.../Library/Preferences/AndroidStudioXX.XX/ Windows: C:\Users....AndroidStudioXX.XX\config\

Then go to logcat in settings and choose the file.

Pabel
  • 652
  • 7
  • 15
1

This is my Logcat custom color scheme for idea / android studio:

  • understated verbose log
  • emphasized assert log

preview

fireb86
  • 1,723
  • 21
  • 35