def setup_logging(self):
        # TODO setup logging (from config)
        logger = logging.getLogger()
        logger.setLevel(logging.DEBUG)
        console = logging.StreamHandler()
        logger.addHandler(console)

        # add file logging
        log_file_stem = os.path.join(self.logs_path, 'fishpi_%s.log' % time.strftime('%Y%m%d_%H%M%S'))
        handler = logging.handlers.RotatingFileHandler(log_file_stem, backupCount=50)
        formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
        handler.setFormatter(formatter)
        logger.addHandler(handler)
        # can force new file start if needed
        #handler.doRollover()
build an intron track as negative control.
dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/fishpi/localconfig_old.py/FishPiConfig.setup_logging--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/buildIntronTrack