         self.dateFormatter = dateFormatter
         self.entryFormatter = entryFormatter
 
-        switch asynchronous {
+        switch synchronous {
+        case true:
+            self.writer = LXSynchronousConsoleWriter()
         case false:
-            self.writer = LXSynchronousConsoleWriter()
-        case true:
             self.writer = LXAsynchronousConsoleWriter()
         }
     }
 
     public func write(string: String) {
-        do {
-            try self.writer.write(string)
-        } catch {
+        guard let data = string.dataUsingEncoding(NSUTF8StringEncoding) else {
             assertionFailure("Failure to create data from entry string")
+            return
         }
+        self.writer.writeData(data)
     }
 
 }

// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.


private protocol LXConsoleWriter {
    func write(entryString: String) throws -> Void
}




    deinit { self.stdoutHandle.closeFile() }

    private func writeData(data: NSData) {
        self.stdoutHandle.writeData(data)
    }

}


private class LXAsynchronousConsoleWriter: LXConsoleWriter {
    private func writeData(data: NSData) {
        guard let dispatchData = dispatch_data_create(data.bytes, data.length, nil, nil) else {
            assertionFailure("Failure to create data from entry string")
            return
        }
        dispatch_write(STDOUT_FILENO, dispatchData, LK_LOGKIT_QUEUE, { _, _ in })
    }

}
