Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2011, 5:18:08 AM (13 years ago)
Author:
rgrieder
Message:

Improved logging to a file by rewriting the log according to the right debug level. Also, failure to open the file is now being handled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/core/Core.cc

    r8423 r8517  
    168168        RegisterRootObject(Core);
    169169        this->setConfigValues();
     170        // Rewrite the log file with the correct log levels
     171        OutputHandler::getInstance().rewriteLogFile();
    170172
    171173#if !defined(ORXONOX_PLATFORM_APPLE) && !defined(ORXONOX_USE_WINMAIN)
     
    240242        SetConfigValueExternal(softDebugLevelLogFile_, "OutputHandler", "softDebugLevelLogFile", defaultLevelLogFile)
    241243            .description("The maximum level of debug output shown in the log file");
    242         OutputHandler::getInstance().setSoftDebugLevel(OutputHandler::logFileOutputListenerName_s, this->softDebugLevelLogFile_);
     244        OutputHandler::getInstance().setSoftDebugLevel("LogFile", this->softDebugLevelLogFile_);
    243245
    244246        SetConfigValue(bDevMode_, PathConfig::buildDirectoryRun())
Note: See TracChangeset for help on using the changeset viewer.