Log enhancement
Posted: Thu Jan 22, 2009 8:07 am
A few probably log features which I think is useful (useful to me):-
1) The ability to add 'hundreth of second' to time eg:-
Currently
and the proposed change will result into something like this:-
By default, Ogre log behavior should be the same as it is now, but you now have this additional function: LogManager::enableHundrethSecond();
2) The ability to add tab to the log messages:-
Currently
and the proposed changes will result into something like this:-
The additional functions may be like this:-
LogManager::increaseIndent
LogManager::decreaseIndent
LogManager::clearIndent
Obviously, these are not that hard to implement, so I am offering to do the patches.
I created this thread to discuss the better function name or any other useful functions that I am missing.
1) The ability to add 'hundreth of second' to time eg:-
Currently
Code: Select all
01:27:47: Creating resource group General
01:27:47: Creating resource group Internal
01:27:47: Creating resource group Autodetect
Code: Select all
01:27:47.012: Creating resource group General
01:27:47.013: Creating resource group Internal
01:27:47.014: Creating resource group Autodetect
2) The ability to add tab to the log messages:-
Currently
Code: Select all
01:27:47: Installing plugin: ParticleFX
01:27:47: Particle Emitter Type 'Point' registered
01:27:47: Particle Emitter Type 'Box' registered
01:27:47: Particle Emitter Type 'Ellipsoid' registered
01:27:47: Particle Emitter Type 'Cylinder' registered
01:27:47: Particle Emitter Type 'Ring' registered
Code: Select all
01:27:47: Installing plugin: ParticleFX
01:27:47: Particle Emitter Type 'Point' registered
01:27:47: Particle Emitter Type 'Box' registered
01:27:47: Particle Emitter Type 'Ellipsoid' registered
01:27:47: Particle Emitter Type 'Cylinder' registered
01:27:47: Particle Emitter Type 'Ring' registered
LogManager::increaseIndent
LogManager::decreaseIndent
LogManager::clearIndent
Obviously, these are not that hard to implement, so I am offering to do the patches.
I created this thread to discuss the better function name or any other useful functions that I am missing.