OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Top 10 OSG Debugging Tips

Goto page Previous  1, 2
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
jack2smith1988
Newbie


Joined: 01 Jul 2012
Posts: 1

PostPosted: Sun Jul 01, 2012 4:39 pm    Post subject:
Reply with quote

Hi,
Actually You have to redirect both stdout and stderr
osgviewer cow.osg > foo.txt 2>&1

On windows "standard" way of logging is to use OutputDebugString function
that connects application to windows debugging facilities (i.e output window
of visual studio). Many libraries print debug messages this way including
MFC, WxWidgets and Qt.

My intention is to incorporate OSG notifications into GUI applications. For
instance I would like to display notifications in a GUI list widget with
messages coloured according to notification severity. In Qt you can do this
by installing custom message sink with qInstallMsgHandler. In OSG you're
stuck with plain std::ostream handle and no severity information.

My proposal is to replace stdout and stderr returned by osg::notify with
custom stream that uses osg::NotifyHandler as message sink (similar to
qInstallMsgHandler in Qt).

...

Thank you!

Cheers,
jack
Back to top
View user's profile Send private message
robert pattinson
Newbie


Joined: 27 Aug 2012
Posts: 1

PostPosted: Mon Aug 27, 2012 8:44 am    Post subject:
Reply with quote

That's a good point, I forgot all about this. In fact, I'm not sure I even saw the link posted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgAndroid - Deploying and Debugging Akhtar Shamim General 6 Mon Sep 28, 2015 7:35 am View latest post
No new posts OSG 3.2 Linux + Eclipse debugging pro... Pertur General 1 Mon Sep 23, 2013 1:55 pm View latest post
No new posts Remove debugging messages from Shader... Farshid Lashkari Submission 2 Tue Apr 16, 2013 7:08 pm View latest post
No new posts Tips for large datasets robertosfield General 2 Tue Mar 05, 2013 9:54 pm View latest post
No new posts adding tool tips to objects in a 3D s... cbuchner1 General 1 Mon Sep 17, 2012 1:13 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP