I have to say this is a good question. I checked the code for logcat and found out the parsing code for the filter expression in logcat.cpp.
int android_log_addFilterRule(AndroidLogFormat *p_format,
const char *filterExpression)
{
size_t i=0;
size_t tagNameLength;
android_LogPriority pri = ANDROID_LOG_DEFAULT;
tagNameLength = strcspn(filterExpression, ":");
if (tagNameLength == 0) {
goto error;
}
if(filterExpression[tagNameLength] == ':') {
pri = filterCharToPri(filterExpression[tagNameLength+1]);
if (pri == ANDROID_LOG_UNKNOWN) {
goto error;
}
}
...
return 0;
error:
return -1;
}
logcat strcspn (filterExpression, ":" ) , , , logcat. .
, DDMS eclipse , RE, .
"SomeApp\:Something:* *:S"
OR, :
^Something1$|^Something2$
eclipse, . script, , . , .