[idd] debug: use better log path determination algorithm

This commit is contained in:
Quantum
2025-09-14 05:04:36 -04:00
parent daa78bcf47
commit e1a2fa790d
2 changed files with 25 additions and 6 deletions

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, ...);