Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2011, 3:55:35 PM (13 years ago)
Author:
landauf
Message:

adjusted output levels for ogre and cegui messages
added config value for cegui logfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/GraphicsManager.cc

    r8796 r8798  
    3535#include <boost/filesystem.hpp>
    3636#include <boost/shared_array.hpp>
    37 #include <boost/preprocessor/stringize.hpp>
    3837
    3938#include <OgreFrameListener.h>
     
    6968namespace orxonox
    7069{
     70    namespace context
     71    {
     72        namespace
     73        {
     74            REGISTER_OUTPUT_CONTEXT(ogre);
     75        }
     76    }
     77
    7178    static const std::string __CC_GraphicsManager_group = "GraphicsManager";
    7279    static const std::string __CC_setScreenResolution_name = "setScreenResolution";
     
    159166        SetConfigValue(ogreLogFile_,     "ogre.log")
    160167            .description("Logfile for messages from Ogre. Use \"\" to suppress log file creation.");
    161         SetConfigValue(ogreLogLevelTrivial_ , 5)
    162             .description("Corresponding orxonox debug level for ogre Trivial");
    163         SetConfigValue(ogreLogLevelNormal_  , 4)
    164             .description("Corresponding orxonox debug level for ogre Normal");
    165         SetConfigValue(ogreLogLevelCritical_, 2)
    166             .description("Corresponding orxonox debug level for ogre Critical");
    167168    }
    168169
     
    410411            {
    411412            case Ogre::LML_TRIVIAL:
    412                 orxonoxLevel = this->ogreLogLevelTrivial_;
     413                orxonoxLevel = level::verbose_more;
    413414                break;
    414415            case Ogre::LML_NORMAL:
    415                 orxonoxLevel = this->ogreLogLevelNormal_;
     416                orxonoxLevel = level::verbose;
    416417                break;
    417418            case Ogre::LML_CRITICAL:
    418                 orxonoxLevel = this->ogreLogLevelCritical_;
     419                orxonoxLevel = level::internal_warning;
    419420                break;
    420421            default:
     
    423424            introduction = "Ogre: ";
    424425        }
    425 #pragma message(__FILE__ "("BOOST_PP_STRINGIZE(__LINE__)") : Warning: TODO: use correct level, also for config values (and remove boost include)")
    426         orxout(debug_output, context::ogre) << "ogre (level: " << lml << "): " << introduction << message << endl;
     426
     427        orxout(orxonoxLevel, context::ogre) << introduction << message << endl;
    427428    }
    428429
Note: See TracChangeset for help on using the changeset viewer.