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
This commit is contained in:
wuyizhong 2006-10-11 03:47:22 +00:00
parent e94c73e7e2
commit 188fdd0ac5

View File

@ -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<FpdModuleIdentification, List<String>> map = new LinkedHashMap<FpdModuleIdentification, List<String> >(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