#include void fishbone::Logger::init(std::string path) { this->ofs = std::ofstream(path, std::ios_base::app); } fishbone::Logger::Logger() { this->init("log.txt"); } fishbone::Logger::Logger(std::string path) { this->init(path); } fishbone::Logger::~Logger() { this->ofs.close(); } void fishbone::Logger::log(std::string arg) { this->log(fishbone::Logger::Info, arg); } void fishbone::Logger::log(int level, std::string arg) { this->ofs << "" + arg << std::endl; }