Redirect log only after parsing configuration

This commit is contained in:
Petr Mikheev 2022-01-13 00:20:16 +01:00
parent bb6b031afd
commit dd5ba5c57b
5 changed files with 54 additions and 41 deletions

View file

@ -133,11 +133,16 @@ namespace Debug
std::map<Level, int> mColors;
};
#endif
}
// Can be used to print messages without timestamps
std::ostream& getRawStdout();
int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, char *argv[], const std::string& appName);
void setupLogging(const std::string& logDir, const std::string& appName, std::ios_base::openmode = std::ios::out);
int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, char *argv[],
const std::string& appName, bool autoSetupLogging = true);
#endif