From da2ef100d4c37ccaed4464340ea4e7112c5ceeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9E=AC=ED=99=98-Jaehwan=20Lee?= Date: Sun, 21 Dec 2014 03:59:34 +0900 Subject: [PATCH] Update LogCatParser.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 공백을 포함한 tag가 존재할 경우 filter 처리가 되지 않음을 수정 --- src/LogCatParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LogCatParser.java b/src/LogCatParser.java index 91921bf..a9dec11 100644 --- a/src/LogCatParser.java +++ b/src/LogCatParser.java @@ -16,6 +16,7 @@ public class LogCatParser implements ILogParser final String TOKEN = "/()"; final String TOKEN_PID = "/() "; final String TOKEN_MESSAGE = "'"; + final String TOKEN_TAG= ":"; public Color getColor(LogInfo logInfo) { @@ -126,7 +127,7 @@ public LogInfo getNormal(String strText) if(stk.hasMoreElements()) logInfo.m_strLogLV = stk.nextToken().trim(); if(stk.hasMoreElements()) - logInfo.m_strTag = stk.nextToken(); + logInfo.m_strTag = stk.nextToken(TOKEN_TAG); if(stk.hasMoreElements()) logInfo.m_strPid = stk.nextToken().trim(); if(stk.hasMoreElements()) @@ -158,7 +159,7 @@ public LogInfo getThreadTime(String strText) if(stk.hasMoreElements()) logInfo.m_strLogLV = stk.nextToken().trim(); if(stk.hasMoreElements()) - logInfo.m_strTag = stk.nextToken(); + logInfo.m_strTag = stk.nextToken(TOKEN_TAG); if(stk.hasMoreElements()) { logInfo.m_strMessage = stk.nextToken(TOKEN_MESSAGE);