     private init() {}
     /// Appends the given string to the stream.
     mutating func write(_ string: String) {
-        #if DEBUG
-        Swift.print(string)
-        #endif
         let paths = FileManager.default.urls(for: .documentDirectory, in: .allDomainsMask)
         let documentDirectoryPath = paths.first!
         let log = documentDirectoryPath.appendingPathComponent(self.file)

    file: String = #file, line: Int = #line, function: String = #function,
    logLevel: LogLevel = .info) {
    let fileName = URL(fileURLWithPath: file).deletingPathExtension().lastPathComponent
    print(logLevel.symbol, logLevel.rawValue, CFAbsoluteTimeGetCurrent(), "⇨",
        fileName, line, function,
        to: &Log.log)
    items.forEach { print($0, to: &Log.log) }
    switch logLevel {
    case .debug, .info:
        break
    case .warning:
        print(Thread.current, to: &Log.log)
    case .error, .exception:
        print(Thread.current, to: &Log.log)
        Thread.callStackSymbols.forEach { print($0, to: &Log.log) }
    }
}


}

private struct Log: TextOutputStream {
    static var shared = Log()
    #if DEBUG
    var file = "debug_log.txt"
    #else
