code: def get_log(username):
      
      redis = get_redis_client()
      log_key = 'log:{}'.format(username)
      raw_log = redis.lrange(log_key, 0, -1)
      log = []
      for raw_item in raw_log:
          item = json.loads(raw_item.decode())
          item['datetime'] = convert_timestamp(item.pop('time'))
          log.append(item)
      return log
docs: Return a list of page views.
  
      Each item is a dict with `datetime`, `method`, `path` and `code` keys.