Add debug prints for logs init for console issues troubleshooting

This commit is contained in:
2026-07-15 12:18:35 +02:00
parent 3dbca8f338
commit 6272de184c
+9
View File
@@ -54,6 +54,9 @@ bool Log::Logger::Init()
#endif
if (FileSystem::CreateDirectory(logsDirectory))
{
#if !BUILD_RELEASE
Platform::Log(String(TEXT("Failed to create logs directory: ")) + logsDirectory);
#endif
return true;
}
@@ -90,8 +93,14 @@ bool Log::Logger::Init()
LogFile = FileWriteStream::Open(LogFilePath);
if (LogFile == nullptr)
{
#if !BUILD_RELEASE
Platform::Log(String(TEXT("Failed to create log file: ")) + LogFilePath);
#endif
return true;
}
#if !BUILD_RELEASE && PLATFORM_CONSOLE
Platform::Log(String(TEXT("Log file: ")) + LogFilePath);
#endif
LogTotalErrorsCnt = 0;
LogAfterInit = true;
#if LOG_ENABLE_WINDOWS_SINGLE_NEW_LINE_CHAR