reptor
06-07-2008 00:42:08
Hello,
What would be the best way to direct log messages coming from NxOgre to my own log?
I have my own Log object. I can direct Ogre3D and CEGUI log messages pretty easily to my own Log object, which then writes them to my own log file in my chosen format. I don't want other log files (at least not for a release version).
As examples,
with Ogre3D I can do class OgreLogListener: public Ogre::LogListener {...
With CEGUI I can do class CeguiLogListener: public CEGUI::Logger {..
...and both of them have functions which re-direct the log messages into my own Log object which then formats the messages as I wish and then writes them to the one single log file.
After looking at the NxOgre source code I am afraid that it would require modification of the NxOgre to accomplish this.
So do you have any tips how to accomplish it with NxOgre? Am I wrong and is there an easy way to do it without modifying NxOgre? Have I missed something important while reading NxOgre source code?
I think it is an important thing to have. The application must be able to control what the user of the application will be seeing, log file included.
What would be the best way to direct log messages coming from NxOgre to my own log?
I have my own Log object. I can direct Ogre3D and CEGUI log messages pretty easily to my own Log object, which then writes them to my own log file in my chosen format. I don't want other log files (at least not for a release version).
As examples,
with Ogre3D I can do class OgreLogListener: public Ogre::LogListener {...
With CEGUI I can do class CeguiLogListener: public CEGUI::Logger {..
...and both of them have functions which re-direct the log messages into my own Log object which then formats the messages as I wish and then writes them to the one single log file.
After looking at the NxOgre source code I am afraid that it would require modification of the NxOgre to accomplish this.
So do you have any tips how to accomplish it with NxOgre? Am I wrong and is there an easy way to do it without modifying NxOgre? Have I missed something important while reading NxOgre source code?
I think it is an important thing to have. The application must be able to control what the user of the application will be seeing, log file included.