summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-06 06:38:26 +0000
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-06 06:38:26 +0000
commit2619585ad0a13a369f3983f9c2d85b25778e4f30 (patch)
treee8dbaf146201c777dbff82a21ec02e74fe2171fe
parent2279b26c4de1e947c038ffa47e3d77a241f09d89 (diff)
downloadedk2-platforms-2619585ad0a13a369f3983f9c2d85b25778e4f30.tar.xz
Change GenBuildLogger format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1476 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java7
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java6
2 files changed, 10 insertions, 3 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java b/Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
index f102b9c271..5b16c6d674 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
@@ -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);
}
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java
index facd1771a2..4a7b56fc49 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java
@@ -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;
}