fix: logger not flushing after every line

This commit is contained in:
MihailRis 2024-06-05 19:05:23 +03:00
parent 9211e835db
commit 04c27ca800

View File

@ -51,6 +51,7 @@ void Logger::log(LogLevel level, const std::string& name, std::string message) {
auto string = ss.str();
if (file.good()) {
file << string << '\n';
file.flush();
}
std::cout << string << std::endl;
}