SWDEV-272673 - Add changes to dump log to a file

Env var AMD_LOG_LEVEL_FILE would dump the log to file.
Change-Id: I6add4a1ae6788f376ce116797cc0573007502e73
This commit is contained in:
Saleel Kudchadker
2021-02-14 14:15:34 -08:00
bovenliggende 196fada9c8
commit 0f14c54c04
5 gewijzigde bestanden met toevoegingen van 39 en 12 verwijderingen
+6
Bestand weergeven
@@ -145,6 +145,12 @@ bool Flag::init() {
flag.setValue(it->second);
}
}
if (!flagIsDefault(AMD_LOG_LEVEL)) {
if (!flagIsDefault(AMD_LOG_LEVEL_FILE)) {
std::string fileName = AMD_LOG_LEVEL_FILE;
outFile = fopen(fileName.c_str(), "w");
}
}
return true;
}