-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
logs
executable file
·31 lines (30 loc) · 1.42 KB
/
logs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# the emoji I currently put into the operator name wreaks havoc...
ENSAFENBINARY="cat -v | sed s/\\\^M$//"
COMMONARGS="-cS mylogcat"
FORMAT="time"
#FORMAT="threadtime"
exec multitail \
-M 0 \
-o 'window_number:[%d]' -o 'subwindow_number:[%d]' \
-o colorscheme:mylogcat \
-o 'cs_re_s:blue,,bold:^[0-9 :.-]*./(dalvikvm)\(' \
-o 'cs_re_s:blue,,bold:^[0-9 :.-]*./(Process)\(' \
-o 'cs_re_s:cyan:^[0-9 :.-]*./(ActivityManager)\(' \
-o 'cs_re_s:cyan:^[0-9 :.-]*./(ActivityThread)\(' \
-o 'cs_re_s:white,,bold:^[0-9 :.-]*./([^\(]*)\(' \
-o 'cs_re_s:green:^[^\(]*(\()[^\)]*(\))' \
-o 'cs_re:red,,inverse:[Pp]ermission [Dd]eni[ae][dl]' \
-o 'cs_re:red,,inverse:Caused by:' \
-o 'cs_re:white:^[0-9 :.-]*' \
-o 'cs_re:cyan::' \
-o 'cs_re_s:red,,inverse:^[0-9 :.-]*(F).[^:]*: (.*)$' \
-o 'cs_re_s:red:^[0-9 :.-]*(E).[^:]*: (.*)$' \
-o 'cs_re_s:yellow:^[0-9 :.-]*(W).[^:]*: (.*)$' \
-o 'cs_re_s:green:^[0-9 :.-]*(V).[^:]*: (.*)$' \
-o 'cs_re_s:cyan:^[0-9 :.-]*(I).[^:]*: (.*)$' \
-o titlebar:logcat \
$COMMONARGS -t radio:RilOfono -l "adb logcat -v $FORMAT -b radio -s RilOfono:* | $ENSAFENBINARY" \
$COMMONARGS -t radio:ofonod -l "adb logcat -v $FORMAT -b radio -s ofonod:* | $ENSAFENBINARY" \
$COMMONARGS -t 'radio:not(RilOfono,ofonod)' -l "adb logcat -v $FORMAT -b radio RilOfono:S,ofonod:s | $ENSAFENBINARY" \
$COMMONARGS -t main -l "adb logcat -v $FORMAT | $ENSAFENBINARY" \