def __init__(self, filepath): """ :param filepath: new record will append to file if filepath exists :return: """ self.filepath = filepath self._running = False self._closing = False self._service_thread = None self._queue = Queue() self._formatter = Formatter()