Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Custom logging only works in one window in a 2 window setup

$
0
0

@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,
Michael

PS: Another strange thing:

ofLogNotice() << "Blah";

works, while

ofLog(OF_LOG_NOTICE, "Blah");

does not...

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles