8#ifndef GALAXY_LOGGING_LOGMESSAGE_HPP_
9#define GALAXY_LOGGING_LOGMESSAGE_HPP_
59struct std::formatter<
galaxy::LogMessage> : std::formatter<std::string>
63 return std::formatter<std::string>::format(std::format(
"{0}[{1}] [{3}, Ln {4}] {2}: {5}\x1b[0m", lm.
colour, lm.
time, lm.
level, lm.
file, lm.
line, lm.
message), ctx);
LogLevel
Used to determine filtering and colouring of log messages.
Parts of a log message to be passed to sinks.
LogLevel level
Level of message.
std::string time
Timestamp of message.
std::string trace
Stack trace.
std::string file
File message occured in.
std::string message
The actual message to record.
unsigned int line
Line the message occured on.
std::string colour
ASCII colour code.