From 188fdd0ac5a81d6768ec56263c7088c59837106f Mon Sep 17 00:00:00 2001 From: wuyizhong Date: Wed, 11 Oct 2006 03:47:22 +0000 Subject: Change some format and remove some unused codes. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1719 6f19259b-4bc3-4df7-8a09-765794883524 --- .../org/tianocore/build/global/GenBuildLogger.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java b/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java index 85ba166..2ab7a17 100644 --- a/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java +++ b/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java @@ -44,17 +44,17 @@ import org.tianocore.common.logger.LogMethod; public class GenBuildLogger extends DefaultLogger implements LogMethod { Project project = null; - /// + + /// /// Time of the start of the build - /// + /// private long startTime = System.currentTimeMillis(); + /// /// flag to present whether cache all msg or not /// true means to cache. /// private static boolean flag = false; - - private static boolean enableFlag = true; private static Map> map = new LinkedHashMap >(256); @@ -79,6 +79,7 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod { if (this.project == null) { return; } + // // If msgLevel is always print, then print it // @@ -98,7 +99,7 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod { case EdkLog.EDK_INFO: log(msgSource, msg, Project.MSG_INFO); break; - case EdkLog.EDK_VERBOSE: + case EdkLog.EDK_VERBOSE: log(msgSource, msg, Project.MSG_VERBOSE); break; case EdkLog.EDK_DEBUG: @@ -181,7 +182,8 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod { } public void messageLogged(BuildEvent event) { - int currentLevel = event.getPriority(); + + int currentLevel = event.getPriority(); // // If current level is upper than Ant Level, skip it // @@ -233,10 +235,6 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod { flag = enable; } - public static void maskAllLog(boolean enable) { - enableFlag = !enable; - } - protected synchronized void log(String message) { // // cache log -- cgit v1.1