Revision: 1427
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1427&view=rev
Author:   rorthomas
Date:     2010-07-05 17:48:11 +0000 (Mon, 05 Jul 2010)

Log Message:
-----------
added ogre log verbosity changes via setting

Modified Paths:
--------------
    trunk/source/main/RigsOfRods.cpp

Modified: trunk/source/main/RigsOfRods.cpp
===================================================================
--- trunk/source/main/RigsOfRods.cpp    2010-07-05 16:16:23 UTC (rev 1426)
+++ trunk/source/main/RigsOfRods.cpp    2010-07-05 17:48:11 UTC (rev 1427)
@@ -110,6 +110,13 @@
        String ogreConfig    = SETTINGS.getSetting("ogre.cfg");
        mRoot = new Root(pluginsConfig, ogreConfig, logFilename);
 
+       // log verbosity change
+       if(SETTINGS.getSetting("Logging Level") == "verbose")
+               mRoot->setLogDetail(LL_BOREME);
+       else if(SETTINGS.getSetting("Logging Level") == "normal")
+               mRoot->setLogDetail(LL_NORMAL);
+       else if(SETTINGS.getSetting("Logging Level") == "low")
+               mRoot->setLogDetail(LL_LL_LOW);
        //FROM NOW ON WE HAVE LOGMANAGER!
 
        CACHE.setLocation(SETTINGS.getSetting("Cache Path"), 
SETTINGS.getSetting("Config Root"));


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to