I recently discovered ofLog::setAutoSpace(), but I am not sure how to use it correctly. And I haven’t seen it in any of the examples.
ofLogError error(“module”);
error.setAutoSpace(true);
error<<“this”<<“is”<<“just”<<“a”<<“demonstration”;
would produce:
[ error ] module: this is just a demonstration
Is it possible to set the auto spacing globally?
Something like:
//ofSetLogAutoSpace(true);
ofSetLogAutoSpace(“module”, true);
ofLogError(“module”)<<“this”<<“is”<<“just”<<“a”<<“demonstration”;
I would even set it by default.
Thomas