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


[ROCm/clr commit: 0f14c54c04]
Bu işleme şunda yer alıyor:
Saleel Kudchadker
2021-02-14 14:15:34 -08:00
ebeveyn d88ef70a57
işleme 4da1282882
5 değiştirilmiş dosya ile 39 ekleme ve 12 silme
+6
Dosyayı Görüntüle
@@ -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;
}