Change GenBuildLogger format.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1476 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
wuyizhong 2006-09-06 06:38:26 +00:00
parent 2279b26c4d
commit 2619585ad0
2 changed files with 10 additions and 3 deletions

View File

@ -124,6 +124,13 @@ public class GenBuildLogger implements LogMethod {
private void log(Object msgSource, String msg, int level) {
if (msgSource instanceof Task) {
this.project.log((Task)msgSource, msg, level);
} else if (msgSource instanceof String){
//
// Pad 12 space to keep message
//
msg = msg.replaceAll("\n", "\n ");
this.project.log(String.format("%12s", "[" + msgSource + "] ") + msg, level);
} else {
this.project.log(msg, level);
}

View File

@ -161,7 +161,7 @@ public class GlobalData {
// CONF dir + tools definition file name
//
File toolsDefFile = new File(workspaceDir + File.separatorChar + toolsDefFilename);
EdkLog.log("Using tool definiton file [" + toolsDefFile.getPath() + "].");
EdkLog.log("Init", "Using tool definiton file [" + toolsDefFile.getPath() + "].");
try {
toolsDef = new ToolChainConfig(toolsDefFile);
} catch (Exception e) {
@ -661,8 +661,8 @@ public class GlobalData {
}
toolChainInfo.addCommands(toolsDef.getConfigInfo().getCommands());
toolChainInfo.normalize();
EdkLog.log("Current build tool chain information summary: ");
EdkLog.log(toolChainInfo + "");
EdkLog.log("Init", "Current build tool chain information summary: ");
EdkLog.log("Init", toolChainInfo + "");
}
return toolChainInfo;
}