Program Listing for File Logger.hpp

Return to documentation for file (src/LouLib/Utility/Logger.hpp)

#ifndef LOULIB_LOGGER_HPP
#define LOULIB_LOGGER_HPP

#include <fstream>
#include <string>

namespace LouLib{
    namespace Utility{

        class Logger {
        private:
            std::ofstream fout;

        public:

            Logger();

            Logger(std::string logFile, std::string fileType = "txt");

            void log(std::string message, bool endl = false);

            void close();
        };
    }
}


#endif //LOULIB_LOGGER_HPP