22 logger::logger() : waitlog_stream_(NULL)
24 const char* log_filename = getenv(
"STXXLLOGFILE");
25 log_stream_.open(log_filename == NULL ?
"stxxl.log" : log_filename);
26 const char* errlog_filename = getenv(
"STXXLERRLOGFILE");
27 errlog_stream_.open(errlog_filename == NULL ?
"stxxl.errlog" : errlog_filename);
28 #ifdef STXXL_WAIT_LOG_ENABLED
29 const char* waitlog_filename = getenv(
"STXXLWAITLOGFILE");
30 if (waitlog_filename) {
32 *
waitlog_stream_ <<
"# time\trd_incr\twr_incr\tw_read\tw_write" << std::endl;
#define STXXL_BEGIN_NAMESPACE
std::ofstream log_stream_
std::ofstream * waitlog_stream_
std::ofstream errlog_stream_
#define STXXL_END_NAMESPACE