mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
feat: write Dalamud.Boot logs to dalamud.boot.log
This commit is contained in:
parent
ad4f2db203
commit
a7540d0fef
5 changed files with 39 additions and 14 deletions
|
|
@ -32,4 +32,10 @@ void logging::print(Level level, const char* s) {
|
|||
|
||||
DWORD wr;
|
||||
WriteFile(GetStdHandle(STD_ERROR_HANDLE), &estr[0], static_cast<DWORD>(estr.size()), &wr, nullptr);
|
||||
|
||||
if (log_file.is_open())
|
||||
{
|
||||
log_file << estr;
|
||||
log_file.flush();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue