Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2011, 12:54:55 AM (13 years ago)
Author:
landauf
Message:

adjusted the rest of the code to the new output system, but some changes have to be reviewed.
all output is currently printed with debug level.
compiles again (posix console untested)

File:
1 edited

Legend:

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

    r8423 r8796  
    3535#include <boost/filesystem.hpp>
    3636#include <boost/shared_array.hpp>
     37#include <boost/preprocessor/stringize.hpp>
    3738
    3839#include <OgreFrameListener.h>
     
    396397        Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName)
    397398    {
    398         int orxonoxLevel;
     399        OutputLevel orxonoxLevel;
    399400        std::string introduction;
    400401        // Do not show caught OGRE exceptions in front
    401402        if (message.find("EXCEPTION") != std::string::npos)
    402403        {
    403             orxonoxLevel = OutputLevel::Debug;
     404            orxonoxLevel = level::internal_error;
    404405            introduction = "Ogre, caught exception: ";
    405406        }
     
    418419                break;
    419420            default:
    420                 orxonoxLevel = 0;
     421                orxonoxLevel = level::debug_output;
    421422            }
    422423            introduction = "Ogre: ";
    423424        }
    424         OutputHandler::getOutStream(orxonoxLevel)
    425             << introduction << message << std::endl;
     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;
    426427    }
    427428
Note: See TracChangeset for help on using the changeset viewer.