diff options
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java | 7 | ||||
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java | 6 |
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;
}
|