Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 16 years ago

Closed 15 years ago

#295 closed task (fixed)

Capture CEGUI output

Reported by: rgrieder Owned by: nobody
Priority: minor Milestone: Version 0.3 Codename: Castor
Component: GUI Version: 0.2.0
Keywords: Cc:
Referenced By: References:

Description

In CEGUI, there is a possibility to manipulate the output (log). Normally, everything is written to CEGUI.log, but by deriving from CEGUI::Logger and creating an instance of that before initialising the system, you can capture the output. See CEGUILogger.h
By looking at CEGUI.log I can see that all usual output has the level "std", but it's quite much (175 lines for a simple main menu).
I suggest deriving from CEGUI::DefaultLogger and override logEvent, but make the base class call as first function statement (DefaultLogger::logEvent). The output is then written to CEGUI.log like now, but you can route everything with a higher priority than std to our own output stream too (COUT). That should make error tracking easier when programming the GUI.

Change History (2)

comment:1 Changed 16 years ago by rgrieder

I have written code that instantiates the DefaultLogger before the CEGUI System in order to specify another log file (and directory).

comment:2 Changed 15 years ago by rgrieder

  • Resolution set to fixed
  • Status changed from new to closed

Implemented as suggested.

Note: See TracTickets for help on using tickets.