LoggSystem
Posted: Thu Sep 01, 2005 18:42
I was looing at the logging system trying to redirect output to cerr so that all my loggs came to the same file. I reached the conclusin that it wasen't posible to do that without changing the CEGUI source wich I would prefere not to do. So I wonder if it could bee posibler to add a mettod in CEGUI::Logger. Sothing like this could work
in CEGUILogger.h
Consider this a feature request.
It would enable code like
CEGUI::Logger::getSingleton().setLogStream(cerr);
and as cerr can bee redirected to any file and can bee used by multiple objects.
ps. if it is already possble to do this pleas disregard my post and tell me how to do it
in CEGUILogger.h
Code: Select all
void setLogStream(const ostream& stream)
{
d_ostream.rdbuf(stream.rdbuf());
}
Consider this a feature request.
It would enable code like
CEGUI::Logger::getSingleton().setLogStream(cerr);
and as cerr can bee redirected to any file and can bee used by multiple objects.
ps. if it is already possble to do this pleas disregard my post and tell me how to do it