Files
Xaibatsu-Control-Panel/XIONControlPanel/Utilities/StandardError.swift
T

19 lines
377 B
Swift
Raw Normal View History

2015-12-31 19:51:51 -08:00
//
// StandardError.swift
// XIONControlPanel
//
// Created by Charles Magahern on 12/31/15.
// Copyright © 2015 XION. All rights reserved.
//
import Foundation
2017-05-13 00:40:03 -07:00
class StandardErrorOutputStream: TextOutputStream
2016-07-24 00:14:04 -07:00
{
2017-05-13 00:40:03 -07:00
func write(_ string: String)
2016-07-24 00:14:04 -07:00
{
2017-05-13 00:40:03 -07:00
let stderr = FileHandle.standardError
stderr.write(string.data(using: String.Encoding.utf8)!)
2015-12-31 19:51:51 -08:00
}
}