Skip to content

Instantly share code, notes, and snippets.

@g4s8
Created October 29, 2015 07:52
Show Gist options
  • Save g4s8/4978510c570d1b2d8f0a to your computer and use it in GitHub Desktop.
Save g4s8/4978510c570d1b2d8f0a to your computer and use it in GitHub Desktop.
Android logcat messages highlighting in sublime text 2
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>uuid</key>
<string>36B0ED25-AAB7-42B2-BB65-4297F6D1D271</string>
<key>patterns</key>
<array>
<dict>
<key>name</key>
<string>string.quoted.double.untitled</string>
<key>match</key>
<string>\b(?i)(\d\d-\d\d \d\d:\d\d:\d\d.\d\d\d)\b</string>
</dict>
<!-- LOG_LEVELS BEGIN -->
<dict>
<key>name</key>
<string>logcat.lvl.error</string>
<key>match</key>
<string>(?:E/[\w.:#-`]*\(\d+\):)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.lvl.warning</string>
<key>match</key>
<string>(?:W/[\w.:#-`]*\(\d+\):)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.lvl.info</string>
<key>match</key>
<string>(?:I/[\w.:#-`]*\(\d+\):)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.lvl.debug</string>
<key>match</key>
<string>(?:D/[\w.:#-`]*\(\d+\):)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.lvl.verbose</string>
<key>match</key>
<string>(?:V/[\w.:#-`]*\(\d+\):)</string>
</dict>
<!-- LOG_LEVELS END -->
<dict>
<key>name</key>
<string>logcat.highlight.error</string>
<key>match</key>
<string>(?:UNHANDLED EXCEPTION)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.error</string>
<key>match</key>
<string>(?:SIGSEGV)</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.info</string>
<key>match</key>
<string>\b(?:[\w.]+Exception)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.debug</string>
<key>match</key>
<string>\b(?:Caused by)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.warning</string>
<key>match</key>
<string>\b(?:Application is not responding)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.debug</string>
<key>match</key>
<string>\b(?:WIN DEATH)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.debug</string>
<key>match</key>
<string>\b(?:Process [\w.]+ \(pid \d+\) has died)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.verbose</string>
<key>match</key>
<string>\b(?:GC_CONCURRENT)\b</string>
</dict>
<dict>
<key>name</key>
<string>logcat.highlight.verbose</string>
<key>match</key>
<string>\b(?:GC_FOR_ALLOC)\b</string>
</dict>
</array>
<key>name</key>
<string>logcat</string>
<key>scopeName</key>
<string>logcat</string>
<key>fileTypes</key>
<array>
<string>log</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment