.. _program_listing_file_lib_Logger.hpp: Program Listing for File Logger.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``lib/Logger.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include using namespace std; // Basic logfile writing class Logger { public: Logger(); Logger(string name); ~Logger(){} void overwrite_logfile(string text); void info(string text); void warning(string text); void error(string text); string get_log_file_path(); private: string timestamp(); string filename = "logfile.txt"; void write_to_logfile(string text, ios_base::openmode mode); string name = ""; };