class utils::LogEntry
Overview
A single entry for the logging system. More…
#include <LogEntry.h> class LogEntry { public: // enums enum Type; // construction LogEntry(const std::string& message); LogEntry(Type type, const std::string& message, const std::string& caller_name); // methods static std::vector<Type> GetWECTypes(); static std::vector<Type> GetIWECTypes(); static std::string TypeToString(Type type); static std::wstring TypeToWstring(Type type); Type GetType() const; const std::string& GetMessage() const; const std::string& GetCaller() const; virtual std::string ToString(const std::string& time_format = "%Y-%m-%d %H:%M:%S") const; bool IsRead() const; void Read(); };
Detailed Documentation
A single entry for the logging system.
Methods
virtual std::string ToString(const std::string& time_format = "%Y-%m-%d %H:%M:%S") const
Print the entry to a string.
The string format is “[type] caller: message”.
void Read()
Set the entry to is_read.