00001 #ifndef SCTAPI_LOG_H 00002 #define SCTAPI_LOG_H 00003 00004 #include <fstream> 00005 #include <string> 00006 00011 class Log : public std::ofstream { 00012 public: 00014 Log(); 00016 Log(std::string fname); 00018 Log(std::string fname, int instance); 00019 00020 #warning "Write file to environment + filename" 00021 // Eg TDAQ_LOGS_PATH/SctApiServer.log 00022 00024 ~Log(); 00025 00026 private: 00027 void printHeader(); 00028 void printTrailer(); 00029 }; 00030 00031 #endif