PPL Assignment
IRM2015006
logger.h
Go to the documentation of this file.
1 #include <fstream>
2 #include <ctime>
3 
4 #ifndef LOGGER_H
5 #define LOGGER_H
6 
8 class Logger
9 {
10 private:
11  time_t rawtime;
12  std::string tmpstr;
13  std::fstream file;
14 public:
16  Logger (const std::string filename);
17 
21  void info (const std::string msg, bool print=false);
22 
26  void log(const std::string type, const std::string msg, bool print=false);
27 
29  ~Logger();
30 };
31 
32 #endif
void info(const std::string msg, bool print=false)
Definition: logger.cpp:18
~Logger()
Definition: logger.cpp:44
void log(const std::string type, const std::string msg, bool print=false)
Definition: logger.cpp:27
Definition: logger.h:8
time_t rawtime
Definition: logger.h:11
std::string tmpstr
Definition: logger.h:12
std::fstream file
Definition: logger.h:13
Logger(const std::string filename)
Definition: logger.cpp:8