Hi Carsten,
Carsten Neumann wrote:
> Hi,
>
> I usually use debug versions of OpenSG and OSG_LOG_LEVEL=DEBUG while
> developing stuff. Unfortunately this produces huge amounts of output
> during system-startup, which I'm often not really interested in. I'm
> fully aware of the ability to set the desired log level from the code of
> my test-programs, but that would mean to edit them.
> Instead, what do you think of introducing a new recognized env. variable
> OSG_LOG_LEVEL_STARTUP that could be used to silence the system until
> after osgInit() ?
> Comments and pointers to potential gotchas for the implementation are
> very welcome ;)
I like the idea (quite a lot, actually ;). The implementation should be fairly
straightforward, changing Log::setLogLevel to use the right variable depending
on the system state and calling it before osgInit returns.
Yours
Dirk
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core