{"id":4856,"date":"2018-11-20T23:26:01","date_gmt":"2018-11-20T15:26:01","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4856"},"modified":"2018-11-20T23:26:01","modified_gmt":"2018-11-20T15:26:01","slug":"use-adb-logcat-with-colors","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2018\/11\/20\/use-adb-logcat-with-colors\/","title":{"rendered":"Use adb logcat with Colors"},"content":{"rendered":"<p>Had problems finding some Debug.LogError messages in the android logcat output,<br \/>\nso googled around and sure enough you can enable output colors easily!<br \/>\nJust add <em>-v color<\/em> parameter:<\/p>\n<pre><span style=\"color: #003366;\">adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG -v color<\/span><\/pre>\n<p>Note: Default windows Command Prompt doesn&#8217;t support colors,<br \/>\nneed to use some other console (i used <a href=\"https:\/\/gitforwindows.org\/\" target=\"_blank\" rel=\"noopener\">GitBash<\/a>, which comes with <a href=\"https:\/\/www.sourcetreeapp.com\/\" target=\"_blank\" rel=\"noopener\">SourceTree<\/a>)<\/p>\n<p><strong>Before: <\/strong>(hard to see which line is Error, notice the E character on that line)<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4859\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2018\/11\/20\/use-adb-logcat-with-colors\/adb-colors-old\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors-old.png?fit=680%2C215&amp;ssl=1\" data-orig-size=\"680,215\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"adb-colors-old\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors-old.png?fit=680%2C215&amp;ssl=1\" class=\"alignnone size-full wp-image-4859\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors-old.png?resize=680%2C215&#038;ssl=1\" alt=\"\" width=\"680\" height=\"215\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors-old.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors-old.png?resize=300%2C95&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p><strong> After: <\/strong>(red text is from Debug.LogError)<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4860\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2018\/11\/20\/use-adb-logcat-with-colors\/adb-colors\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?fit=680%2C216&amp;ssl=1\" data-orig-size=\"680,216\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"adb-colors\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?fit=680%2C216&amp;ssl=1\" class=\"alignnone size-full wp-image-4860\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?resize=680%2C216&#038;ssl=1\" alt=\"\" width=\"680\" height=\"216\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?resize=300%2C95&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p><strong>References<\/strong><br \/>\n&#8211; <a href=\"https:\/\/developer.android.com\/studio\/command-line\/logcat\" target=\"_blank\" rel=\"noopener\">https:\/\/developer.android.com\/studio\/command-line\/logcat<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Had problems finding some Debug.LogError messages in the android logcat output, so googled around and sure enough you can enable output colors easily! Just add -v color parameter: adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG -v color Note: Default windows Command Prompt doesn&#8217;t support [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4860,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Use adb logcat with Colors #UnityTips","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[797,3],"tags":[1066,79,453,481,992,1067,1068,171],"class_list":["post-4856","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","category-unity3d","tag-adb","tag-color","tag-colors","tag-error","tag-log","tag-logcat","tag-output","tag-unity"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/11\/adb-colors.png?fit=680%2C216&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1gk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4856"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4856\/revisions"}],"predecessor-version":[{"id":4861,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4856\/revisions\/4861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4860"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}