It is intended to be used like this:
#define ENABLE_RT_LOG
int main (int argc, char** argv) {
}
dgRTLOG() <<
"your message. Prefer to use \n than std::endl."
- Note
- Thread safety. This class expects to have:
- only one reader: the one who take the log entries and write them somewhere.
- one writer at a time. Writing to the logs is never a blocking operation. If the resource is busy, the log entry is discarded.