diff --git a/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift b/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift index fa3359a..5bf8917 100644 --- a/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift +++ b/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift @@ -30,6 +30,7 @@ public struct LoggerTextOutputStreamPipe: Pipe { var stream = self.stream if stream == nil { Swift.print("\(formattedLogLine)") + fflush(stdout) return } stream!.write("\(formattedLogLine)\n")