Skip to content

Commit 6e6671f

Browse files
committed
ovis: create a default log with low log level
to prevent console spam. only outputs errors/ warnings now.
1 parent 0daa388 commit 6e6671f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/ovis/src/ovis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static SceneNode* _getSceneNode(SceneManager* sceneMgr, const String& name)
138138

139139
struct Application : public OgreBites::ApplicationContext
140140
{
141+
Ptr<LogManager> logMgr;
141142
Ogre::SceneManager* sceneMgr;
142143
Ogre::String title;
143144
uint32_t w;
@@ -147,6 +148,9 @@ struct Application : public OgreBites::ApplicationContext
147148
: OgreBites::ApplicationContext("ovis", false), sceneMgr(NULL), title(_title), w(sz.width),
148149
h(sz.height)
149150
{
151+
logMgr.reset(new LogManager());
152+
logMgr->createLog("ovis.log", true, true, true);
153+
logMgr->setLogDetail(LL_LOW);
150154
}
151155

152156
void setupInput(bool /*grab*/)

0 commit comments

Comments
 (0)