54 LOG(logstream,
Debug) <<
"Debug message from a threaded function.\n";
71 int main(
int argc,
char** argv) {
74 std::cout <<
"***********************************************************" <<
std::endl;
76 std::cout <<
"***********************************************************" <<
std::endl;
79 std::cout <<
"This program will log from main and a parallel thread" <<
std::endl;
80 std::cout <<
"to a shared log file call 'test.log'." <<
std::endl;
85 LOG(logstream,
Debug) <<
"Debug message from main.\n";
90 std::cout <<
"***********************************************************" <<
std::endl;
92 std::cout <<
"***********************************************************" <<
std::endl;
void enableModes(LogStream &log_stream)
void enableMode(int mode, const std::string header="")
Enable the given mode and associate the specified header.
A customised textstream for fast, multithreaded logging to file.
Macro enabled, fast logging stream.
void enableHeader()
Enable header information.
void enableTimeStamp()
Enable time stamps.
int main(int argc, char **argv)