Re: [osg-users] nofity in two files from two differents applications

2010-07-07 Thread David Callu
Hi Vincent

osg::nofify is a simple log system with only one logger. So you can't expect
have many logger or one logger per thread.



To do this, you need a strongest log library like
log4cpphttp://log4cpp.sourceforge.net/,
or the
incoming Boost.Log http://sourceforge.net/projects/boost-log/.

HTH
David Callu

2010/7/6 Vincent Bourdier vincent.bourd...@gmail.com

 Hi all,

 I'm using the osg::notify logs, but in two applications(threads) in the
 same process.
 Each application uses the notify logs of osg that are redirected into a log
 file, but when one application run and the second is started, it redirect
 each logs into a new common file...
 I would like to keep each log into a separate file, but keeping the
 osg::notify usage.

 Do you have any idea or suggestion ?

 Thanks

 Regards,
   Vincent.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] nofity in two files from two differents applications

2010-07-07 Thread Robert Osfield
Hi Vincent,

As David says osg::Notify is relatively simple and not designed to
handling multiple threads logging to different outputs.  You
potentially you write custom NotifyHandler (available in svn/trunk and
the 2.9.x series)  that checks the current thread using
OpenThreads::Thread::CurrentThread() and then redirect to the
appropriate user logging file.

Robert.

On Tue, Jul 6, 2010 at 10:02 PM, Vincent Bourdier
vincent.bourd...@gmail.com wrote:
 Hi all,

 I'm using the osg::notify logs, but in two applications(threads) in the same
 process.
 Each application uses the notify logs of osg that are redirected into a log
 file, but when one application run and the second is started, it redirect
 each logs into a new common file...
 I would like to keep each log into a separate file, but keeping the
 osg::notify usage.

 Do you have any idea or suggestion ?

 Thanks

 Regards,
   Vincent.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] nofity in two files from two differents applications

2010-07-06 Thread Vincent Bourdier

Hi all,

I'm using the osg::notify logs, but in two applications(threads) in the 
same process.
Each application uses the notify logs of osg that are redirected into a 
log file, but when one application run and the second is started, it 
redirect each logs into a new common file...
I would like to keep each log into a separate file, but keeping the 
osg::notify usage.


Do you have any idea or suggestion ?

Thanks

Regards,
   Vincent.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org