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:
@ -44,17 +44,17 @@ import org.tianocore.common.logger.LogMethod;
|
|||||||
public class GenBuildLogger extends DefaultLogger implements LogMethod {
|
public class GenBuildLogger extends DefaultLogger implements LogMethod {
|
||||||
|
|
||||||
Project project = null;
|
Project project = null;
|
||||||
///
|
|
||||||
|
///
|
||||||
/// Time of the start of the build
|
/// Time of the start of the build
|
||||||
///
|
///
|
||||||
private long startTime = System.currentTimeMillis();
|
private long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
///
|
///
|
||||||
/// flag to present whether cache all msg or not
|
/// flag to present whether cache all msg or not
|
||||||
/// true means to cache.
|
/// true means to cache.
|
||||||
///
|
///
|
||||||
private static boolean flag = false;
|
private static boolean flag = false;
|
||||||
|
|
||||||
private static boolean enableFlag = true;
|
|
||||||
|
|
||||||
private static Map<FpdModuleIdentification, List<String>> map = new LinkedHashMap<FpdModuleIdentification, List<String> >(256);
|
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) {
|
if (this.project == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// If msgLevel is always print, then print it
|
// If msgLevel is always print, then print it
|
||||||
//
|
//
|
||||||
@ -98,7 +99,7 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod {
|
|||||||
case EdkLog.EDK_INFO:
|
case EdkLog.EDK_INFO:
|
||||||
log(msgSource, msg, Project.MSG_INFO);
|
log(msgSource, msg, Project.MSG_INFO);
|
||||||
break;
|
break;
|
||||||
case EdkLog.EDK_VERBOSE:
|
case EdkLog.EDK_VERBOSE:
|
||||||
log(msgSource, msg, Project.MSG_VERBOSE);
|
log(msgSource, msg, Project.MSG_VERBOSE);
|
||||||
break;
|
break;
|
||||||
case EdkLog.EDK_DEBUG:
|
case EdkLog.EDK_DEBUG:
|
||||||
@ -181,7 +182,8 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void messageLogged(BuildEvent event) {
|
public void messageLogged(BuildEvent event) {
|
||||||
int currentLevel = event.getPriority();
|
|
||||||
|
int currentLevel = event.getPriority();
|
||||||
//
|
//
|
||||||
// If current level is upper than Ant Level, skip it
|
// If current level is upper than Ant Level, skip it
|
||||||
//
|
//
|
||||||
@ -233,10 +235,6 @@ public class GenBuildLogger extends DefaultLogger implements LogMethod {
|
|||||||
flag = enable;
|
flag = enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void maskAllLog(boolean enable) {
|
|
||||||
enableFlag = !enable;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected synchronized void log(String message) {
|
protected synchronized void log(String message) {
|
||||||
//
|
//
|
||||||
// cache log
|
// cache log
|
||||||
|
Reference in New Issue
Block a user