def __init__(self, logger):
        '''
        search for first FileHandler and store it's current position 
        '''
        self.init_ok=0
        if not isinstance(logger, logging.Logger):
            log.error('__init__: <logger> must be instance of logging.Logger')
            return
        filehandler=self._find_file_handler(logger)
        if filehandler is None:
            log.error('__init__: no FileHandlers binded to <logger>')
            return
        self.stream=filehandler.stream
        self.basename=filehandler.baseFilename
        self.start_pos=self.stream.tell()
        self.init_ok=1

        search for first FileHandler and store it's current position 
        
recipes/Python/519624_Saving_logging_disk_log_fragment_inseparated/recipe-519624.py