@mboeni wrote:
Hi there
I just implemented a custom loggerChannel. The channel works okay, but only in the main window. The setup is as follows:
The custom logger channel is set up here:
ofPtr<a7ConsoleLoggerChannel>consoleLoggerChannel = ofPtr<a7ConsoleLoggerChannel>(new a7ConsoleLoggerChannel(&consoleOutput));
I have two windows "mainWindow" and "gameWindow". in both, I do:
ofSetLoggerChannel(consoleLoggerChannel); ofSetLogLevel(OF_LOG_VERBOSE);
When I run
ofLogNotice() << "Simulation environment setup completed.";
in the mainWindow, it works. When I do exactly the same in the gameWindow, nothing at all happens.
Any ideas what I'm doing wrong here?
Cheers,
MichaelPS: Another strange thing:
ofLogNotice() << "Blah";
works, while
ofLog(OF_LOG_NOTICE, "Blah");
does not...
Posts: 2
Participants: 1