Commit 6e6671fd authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: create a default log with low log level

to prevent console spam. only outputs errors/ warnings now.
parent 0daa388f
......@@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name)
struct Application : public OgreBites::ApplicationContext
{
Ptr<LogManager> logMgr;
Ogre::SceneManager* sceneMgr;
Ogre::String title;
uint32_t w;
......@@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext
: OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width),
h(sz.height)
{
logMgr.reset(new LogManager());
logMgr->createLog("ovis.log", true, true, true);
logMgr->setLogDetail(LL_LOW);
}
void setupInput(bool /*grab*/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment