1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[util] Fixed message logging to file

This commit is contained in:
Philip Rebohle 2018-01-16 12:32:09 +01:00
parent 18835c324e
commit 8805958736
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -44,8 +44,9 @@ namespace dxvk {
static std::array<const char*, 5> s_prefixes
= {{ "trace: ", "debug: ", "info: ", "warn: ", "err: " }};
std::cerr << s_prefixes.at(static_cast<uint32_t>(level)) << message << std::endl;
m_fileStream << message << std::endl;
const char* prefix = s_prefixes.at(static_cast<uint32_t>(level));
std::cerr << prefix << message << std::endl;
m_fileStream << prefix << message << std::endl;
m_fileStream.flush();
}
}