Change GenBuildLogger format.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / global / GenBuildLogger.java
index f102b9c2714afa17691de9e444de468e05de600f..5b16c6d6749ed4a91057cd2cf689f203c3b3e5c5 100644 (file)
@@ -124,6 +124,13 @@ public class GenBuildLogger implements LogMethod {
     private void log(Object msgSource, String msg, int level) {\r
         if (msgSource instanceof Task) {\r
             this.project.log((Task)msgSource, msg, level);\r
+        } else if (msgSource instanceof String){\r
+            \r
+            //\r
+            // Pad 12 space to keep message \r
+            //\r
+            msg = msg.replaceAll("\n", "\n            ");\r
+            this.project.log(String.format("%12s", "[" + msgSource + "] ") + msg, level);\r
         } else {\r
             this.project.log(msg, level);\r
         }\r