'Always run from a subprocess.  Read from read_fd and write to the
logging module until EOF.'

def _run_logging_subprocess(self, read_fd):

    signal.signal(signal.SIGTERM, signal.SIG_DFL)
    input_file = os.fdopen(read_fd, 'r')
    for line in iter(input_file.readline, ''):
        logging.log(self._level, line.rstrip('\n'))
    os._exit(0)
