GameLog(const GameLog &)=delete
Copying is disabled because this log registers a callback tied to its lifetime.
GameLog & operator=(const GameLog &)=delete
Assignment is disabled because callback restoration follows construction order.
GameLog(const std::filesystem::path &path)
Open path, truncating an existing log.
~GameLog()
Close the log file and restore the SDL callback active before construction.
friend void StopGameLog()
Close the active game log and restore its previous callback before fatal process exit.
Definition assetimport.h:11
void StopGameLog()
Close the active game log and restore its previous callback before fatal process exit.
std::string AbbreviateLogPaths(std::string_view message, std::string_view home)
Abbreviate home-directory paths in a log message without changing similarly prefixed paths.