S3FC project page | S3FC home page |
The following components exist:
// Construct an instance of the file logger. s3_filelogger s3_log( "my_logfile.txt" ); // Log messages to the file. s3_log << "This is demo message number " << 1 << endl; s3_log << "This is demo message number " << 2 << endl; s3_log << "We can also log other types like floats: " << float( 1.234 ) << endl;
The end of a message is indicated by streaming std::endl or std::flush to the ostream.
Class s3_logger is special in the sence that it can log simultaneously to a number of ostreams. Also, it prepends a specified string (ident) and a message severity string to all logs. An instance of this class (s3_log) is contructed automatically at runtime for your convenience.
Send comments to: s3fc@stonethree.com |
|