code: def get_vdl_log_file(logdirs):
      """Get logs.
  
      Every dir(means `run` in vdl) has only one log(meads `actual log file`).
  
      Returns:
          walks: A dict like {"exp1": "vdlrecords.1587375595.log",
                              "exp2": "vdlrecords.1587375685.log"}
      """
      walks = {}
      walks_temp = {}
      for logdir in logdirs:
          for root, dirs, files in bfile.walk(logdir):
              walks.update({root: files})
  
      for run, tags in walks.items():
          tags_temp = [
              tag
              for tag in tags
              if is_VDLRecord_file(
                  path=bfile.join(run, tag), check=False
              )
          ]
          tags_temp.sort(reverse=True)
          if len(tags_temp) > 0:
              walks_temp.update({run: tags_temp[0]})
  
      return walks_temp
  
file_path: VisualDL/visualdl/server/serve.py
imports: import requests
  import json
  import os
  from visualdl.io import bfile
  from visualdl.reader.reader import is_VDLRecord_file
  from visualdl.utils.dir import CONFIG_PATH
  from visualdl.server.log import logger
label_desc: Use image node_id 4 for calling a global function with example usage: get_vdl_log_file(logdirs) and returns: walks_temp