code: def get_log(name=None):
      
      if name is None:
          name = 'oct2py'
      else:
          name = 'oct2py.' + name
  
      log = logging.getLogger(name)
      log.setLevel(logging.INFO)
      return log
docs: Return a console logger.
  
      Output may be sent to the logger using the `debug`, `info`, `warning`,
      `error` and `critical` methods.
  
      Parameters
      ----------
      name : str
          Name of the log.
  
      References
      ----------
      .. [1] Logging facility for Python,
             http://docs.python.org/library/logging.html