mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Redirect log only after parsing configuration
This commit is contained in:
parent
bb6b031afd
commit
dd5ba5c57b
5 changed files with 54 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue