code: def log(self, n=None, template=None):
          
          cmd = ['bzr', 'log']
          if n:
              cmd.append('-l%d' % n)
          return self.sh(cmd, shell=False)
docs: Run the repository log command
  
          Returns:
              str: output of log command (``bzr log -l <n>``)