[idd] debug: use better log path determination algorithm

This commit is contained in:
Quantum committed 2025-09-14 06:23:13 -04:00
1 parent daa78bcf47
commit e1a2fa790d
2 files changed
+25 -6

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ class CDebug
{
private:
std::ofstream m_stream;
std::wstring m_logDir;
void Write(const wchar_t *line);
public:
@@ -44,6 +45,7 @@ class CDebug
LEVEL_MAX
};
const wchar_t *logDir() { return m_logDir.c_str(); }
void Init(const wchar_t * name);
void Log_va(CDebug::Level level, const char *function, int line, const wchar_t *fmt, va_list args);
void Log(CDebug::Level level, const char *function, int line, const wchar_t *fmt, ...);