Redirect stderr messages to the log file, as in daemon mode assert() failure are silent and make wrong INI file hard to fix.

This commit is contained in:
Daniel Caujolle-Bert
2020-05-09 12:11:08 +02:00
parent 5410ca3ce8
commit c3efabf56c
4 changed files with 20 additions and 7 deletions

2
Log.h
View File

@@ -30,7 +30,7 @@
extern void Log(unsigned int level, const char* fmt, ...);
extern bool LogInitialise(const std::string& filePath, const std::string& fileRoot, unsigned int fileLevel, unsigned int displayLevel);
extern bool LogInitialise(bool daemon, const std::string& filePath, const std::string& fileRoot, unsigned int fileLevel, unsigned int displayLevel);
extern void LogFinalise();
#endif