code: def printlog(self, string, verbose=None, flush=False):
          
          if self.writelog:
              self.logger.info(string)
          if verbose or (self.verbose and verbose is None):
              print(string, flush=flush)
docs: Prints the given string to a logfile if logging is on, and to
          screen if verbosity is on.