19 lines
394 B
C++
19 lines
394 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct LogEntry {
|
|
time_t time;
|
|
std::string message;
|
|
|
|
LogEntry() = default;
|
|
LogEntry(time_t time_, std::string message_);
|
|
};
|
|
extern std::vector<LogEntry> 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);
|