Swift: flush log files on log flushing

This commit is contained in:
Paolo Tranquilli
2023-04-24 10:08:12 +02:00
parent f9a52f894e
commit 1ed5f6ac96

View File

@@ -134,6 +134,12 @@ void Log::configure() {
void Log::flushImpl() {
session.consume(*this);
if (text) {
textFile.flush();
}
if (binary) {
binary.output.flush();
}
}
Log::LoggerConfiguration Log::getLoggerConfigurationImpl(std::string_view name) {