26 static bool init(
const std::string& filename);
39 static void log(
const std::string& message);
55 static std::string
stripAnsi(
const std::string& str);
Static logger that writes to both console and a log file.
static std::string stripAnsi(const std::string &str)
Remove ANSI escape sequences from a string.
static bool isOpen()
Check if the log file is currently open.
static std::ofstream logFile_
static bool init(const std::string &filename)
Initialize the logger with an output file.
static void log(const std::string &message)
Write a message to both console and log file.
static void close()
Close the log file.