Support max log level for Recast via env variable

Do not write to log if log message level is greater than one speficied
in the OPENMW_RECAST_MAX_LOG_LEVEL env variable. Use Error by default.
This commit is contained in:
elsid 2025-03-21 14:32:33 +01:00
parent 057c85b710
commit 51258662b5
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
13 changed files with 68 additions and 35 deletions

View file

@ -36,6 +36,8 @@ namespace Debug
Level getDebugLevel();
Level getRecastMaxLogLevel();
// Redirect cout and cerr to the log file
void setupLogging(const std::filesystem::path& logDir, std::string_view appName);