mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
fix: logger not flushing after every line
This commit is contained in:
parent
9211e835db
commit
04c27ca800
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ void Logger::log(LogLevel level, const std::string& name, std::string message) {
|
||||||
auto string = ss.str();
|
auto string = ss.str();
|
||||||
if (file.good()) {
|
if (file.good()) {
|
||||||
file << string << '\n';
|
file << string << '\n';
|
||||||
|
file.flush();
|
||||||
}
|
}
|
||||||
std::cout << string << std::endl;
|
std::cout << string << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue