LoggSystem

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Lijat
Just popping in
Just popping in
Posts: 7
Joined: Sun Aug 28, 2005 12:36

LoggSystem

Postby Lijat » 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

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: LoggSystem

Postby CrazyEddie » Fri Sep 02, 2005 09:22

Hi,

It's not currently possible to do this. However this type of request has been made before. We'll add your vote for this to the list, and hopefully something will be implemented in time for the 0.5.0 release ;)


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest