21 outputFile << str.c_str();
22 outputFile << std::endl;
34 outputFile << str.c_str();
35 outputFile << std::endl;
57 std::ostringstream dbfilename;
59 << dwParams_.dbFilePath_
62 <<
"-" << dwParams_.hostName_
63 <<
"-" << dwParams_.smInstanceString_
66 outputFile.open( dbfilename.str().c_str(), std::ios_base::ate |
std::ios_base::out | std::ios_base::app );
67 if (! outputFile.is_open() )
69 std::ostringstream
msg;
70 msg <<
"Failed to open db log file " << dbfilename.str();
71 XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
84 <<
"\thost:" << dwParams_.hostName_
85 <<
"\tinstance:" << dwParams_.smInstanceString_
TimePoint_t getCurrentTime()
static const char runNumber_[]
std::string dateStamp(TimePoint_t)
void configure(const unsigned int runNumber, const DiskWritingParams &)
long secondsSinceEpoch(TimePoint_t const &)
void writeOld(const utils::TimePoint_t &, const std::string &)
void addReportHeader(std::ostream &, const utils::TimePoint_t &) const
DiskWritingParams dwParams_
void write(const std::string &)
boost::posix_time::ptime TimePoint_t
void checkDirectory(const std::string &)
void openFile(std::ofstream &, const utils::TimePoint_t &) const