mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
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:
parent
2279b26c4d
commit
2619585ad0
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user