// // Created by Nik on 20/05/2022. // #ifndef NALOGA1102_LOG_H #define NALOGA1102_LOG_H #include #include enum LogType{ DEBUG, INFO, ERROR, WARNING }; class Log { private: std::ofstream file; std::string fileName = "log.txt"; public: Log(LogType type); ~Log(); std::string GetStringLogType(LogType type); template Log& operator<<(const T &msg){ file << msg; return *this; }; }; #endif //NALOGA1102_LOG_H