Moin,
here is a test output from Perl:
te@null:~/perl/Irrlicht/Games-Irrlicht-0.03> perl t/szenemanager.t
1..4
ok 1 - use Games::Irrlicht;
ok 2 - Games::Irrlicht->can('FileSystem')
Irrlicht Engine version 0.5
Linux
Creating X window...
debugtest Choosing visual display with stencil...
Starting windowed mode...
Connecting glx context to window...
Window created.
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Multitexturing disabled.
Loaded texture: #DefaultFont
ok 3
ok 4 - Could add FPS camera
Deleting window...
Now, the testsuite really shouldn't output anything except "ok 4" or "not ok 4" lines, except maybe "# some comment" lines.
However, I have not found a way to disable the logging from Irrlicht. Is this actually possible? Or to redirect it into a file?
Cheers,
Tels
Disabling log output?
Disabling log output?
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
"You can create an event receiver, and when you get a log event, just return 'true'. Another way would be to set the log level of the Logger, in device->getLogger()."
Thank you, exactly what I am looking for. I created my own event receiver anyway so I can disable events for the testsuite (had it printf "event received" and wondered why so many events passed along, but never looked _what_ events that where :)
Best wishes,
Tels
Thank you, exactly what I am looking for. I created my own event receiver anyway so I can disable events for the testsuite (had it printf "event received" and wondered why so many events passed along, but never looked _what_ events that where :)
Best wishes,
Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
This does not work, because (I think) you can only set the loglevel _after_ you have created the device:another way would be to set the log level of the Logger, in device->getLogger().
Code: Select all
device =
createDevice(
EDT_OPENGL, // renderer
dimension2d<s32>(w, h), // size
d, // bit depth
fs, // fullscreen?
false, // stencilbuffer
&receiver); // event receiver
if (NULL == device) { return 0; } // error
logger = device->getLogger();
logger->setLogLevel(ELL_ERROR);
However, eating them in the custom event receiver works great :)
Cheers,
Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
Do you have plans to change this? The "disable log output" isn't very usefull right now :o)niko wrote:Yep, ok, that's right. You would still get the texts which are printed during the creation of the device.
Cheers,
Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game