Closed mariusalexander closed 5 months ago
@rainman110 Can you have a look at the changes?
Regarding nosapce
and space
: These only affect the next message, due to the way we implemented the space flag. It appends a space after the next message, thus the behavior may be a bit unexpected.
Example: Say I want to print "HelloWorld ..." for what ever reason
gtInfo() << "Hello"
<< gt::log::nospace
<< "World"
<< gt::log::space
<< "...";
// outputs: 'Hello World... '
gtInfo() << gt::log::nospace
<< "Hello"
<< gt::log::space
<< "World"
<< "...";
// outputs: 'HelloWorld ... '
As you can see, nosapce
/space
only affect the next message. What do you think, is it fine as is?
Closes #129
Implement manipulators
gt::log::nospace
,gt::log::space
,gt::log::noquote
, andgt::log::quote
to alter the flags for logging spaces after the next messages and to log quotes around string types for the next message.