Change Log Output Path

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

CrimsonGT
Just popping in
Just popping in
Posts: 7
Joined: Mon Jul 12, 2010 12:30

Change Log Output Path

Postby CrimsonGT » Thu Jul 15, 2010 14:44

Couple of quick easy questions to start the day off. Is there anyway to change the output directory of the CEGUI.log file? I have a logs folder Ogre and everything else outputs to, and I would like CEGUI to spew all its unhappy logs into that directory if possible.

Also, I just finished the Menu tutorial. Code version worked perfect, and I got XML mostly working but had a couple of questions.

What is NativeHorzRes/NativeVertRes in the imageset? I changed them around to various amounts but they didn't seem to have any influence on the actual display.

There is also a white border around my render window (despite it being fullscreen) and I am just wondering if there is a border option somewhere I forgot to turn off. It is coming from CEGUI as using pure Ogre code to display a background image was fine.

Thanks!

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Change Log Output Path

Postby agamemnus » Thu Jul 15, 2010 16:14

NativeHorzRes/NativeVertRes are there to determine the X/Yscaling factor if you set AutoScaled="true" in an imageset xml.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Change Log Output Path

Postby Jamarr » Thu Jul 15, 2010 20:11

CrimsonGT wrote:Couple of quick easy questions to start the day off. Is there anyway to change the output directory of the CEGUI.log file? I have a logs folder Ogre and everything else outputs to, and I would like CEGUI to spew all its unhappy logs into that directory if possible.


You should call CEGUI::Logger::getSingleton().setLogFilename() before initializing CEGUI.

There is also a white border around my render window (despite it being fullscreen) and I am just wondering if there is a border option somewhere I forgot to turn off. It is coming from CEGUI as using pure Ogre code to display a background image was fine.


What does "render window" mean? Are you talking about a frame window? your gui-sheet? This is too vague. Do you have a screen shot?
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

CrimsonGT
Just popping in
Just popping in
Posts: 7
Joined: Mon Jul 12, 2010 12:30

Re: Change Log Output Path

Postby CrimsonGT » Fri Jul 16, 2010 18:25

As far as the log file goes, is there anyway to make all of the logs go into a custom folder? I noticed when setting setLogFilename() it split the CEGUI output between cegui.log and the one I specified.

As far as the border issues goes, I solved it. I had not used the looknfeel files but the one I was using (taharez or whatever) had borders set to true.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Change Log Output Path

Postby Jamarr » Fri Jul 16, 2010 19:00

...before initializing CEGUI.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests