StdioOutputStream
public struct StdioOutputStream : TextOutputStream
Copied from swift-log:Logging.swift until it is made public
A wrapper to facilitate print
-ing to stderr and stdio that
ensures access to the underlying FILE
is locked to prevent
cross-thread interleaving of output.
-
File handler we’re writing to
Declaration
Swift
public let file: UnsafeMutablePointer<FILE>
-
Write to file
Declaration
Swift
public func write(_ string: String)