#pragma once #include #include struct LogEntry { time_t time; std::string message; LogEntry() = default; LogEntry(time_t time_, std::string message_); }; extern std::vector log_entries; std::string format_log(const LogEntry& entry); void print_log(const LogEntry& entry); void log(LogEntry entry, bool print = true); void log(std::string entry);