       length: 0
     )
 
-    stdoutLogger.debug("Returning \(result)")
+    logger.debug("Returning \(result)")
     return result
   }
 
   public func markedRange() -> NSRange {
     guard let marked = self.markedText else {
-      stdoutLogger.debug("No marked text, returning not found")
+      logger.debug("No marked text, returning not found")
       return .notFound
     }
 

    let position = self.position(at: aPoint)
    let result = self.ugrid.flatCharIndex(forPosition: position)

    stdoutLogger.debug("\(aPoint) -> \(position) -> \(result)")

    return result
  }


      self.markedPosition = newMarkedPosition

      logger.debug("Deleting \(replacementRange.length) " +
                           "and inputting \(self.markedText!)")
      try? self.bridge.deleteCharacters(replacementRange.length,
                                        input: self.markedText!).wait()
    } else {
      logger.debug("Deleting \(oldMarkedTextLength) " +
                           "and inputting \(self.markedText!)")
      try? self.bridge.deleteCharacters(oldMarkedTextLength,
                                        input: self.markedText!).wait()
