C
ciccio
Hi,
I would like to write debug output to my screen but I don't want to use
std::cout or std::cerr but rather a thing called debug which would write
to std:cerr. Also I would like to have that each new line would start with
a certain starting character.
An example would then be
debug << "Debug line 1\nDebug line 2" << std::endl;
which should result in the following output to stderr
(D) Debug line 1
(D) Debug line 2
Is this possible?
I would like to write debug output to my screen but I don't want to use
std::cout or std::cerr but rather a thing called debug which would write
to std:cerr. Also I would like to have that each new line would start with
a certain starting character.
An example would then be
debug << "Debug line 1\nDebug line 2" << std::endl;
which should result in the following output to stderr
(D) Debug line 1
(D) Debug line 2
Is this possible?