class_docstr: Log writer to write vdl records to log file.
  
  The class `LogWriter` provides APIs to create record file and add records to
  it. The class updates log file asynchronously without slowing down training.
class_docstr_tok: ["Log","writer","to","write","vdl","records","to","log","file",".","The","class","`","LogWriter","`","provides","APIs","to","create","record","file","and","add","records","to","it",".","The","class","updates","log","file","asynchronously","without","slowing","down","training","."]
code: def _get_file_writer(self):
      if not self._write_to_disk:
          self._file_writer = DummyFileWriter(logdir=self._logdir)
          self._all_writers.update({self._logdir: self._file_writer})
          return self._file_writer
  
      if self._all_writers is {} or self._file_writer is None:
          self._file_writer = RecordFileWriter(
              logdir=self._logdir,
              max_queue_size=self._max_queue,
              flush_secs=self._flush_secs,
              filename_suffix=self._filename_suffix,
              filename=self._file_name,
          )
          self._all_writers.update({self._logdir: self._file_writer})
      return self._file_writer
  
imports: import os
  import time
  import numpy
  from visualdl.component.base_component import audio
  from visualdl.component.base_component import embedding
  from visualdl.component.base_component import histogram
  from visualdl.component.base_component import hparam
  from visualdl.component.base_component import image
  from visualdl.component.base_component import meta_data
  from visualdl.component.base_component import pr_curve
  from visualdl.component.base_component import roc_curve
  from visualdl.component.base_component import scalar
  from visualdl.component.base_component import scalars
  from visualdl.component.base_component import text
  from visualdl.component.graph import translate_graph
  from visualdl.io import bfile
  from visualdl.server.log import logger
  from visualdl.utils.figure_util import figure_to_image
  from visualdl.utils.img_util import merge_images
  from visualdl.utils.md5_util import md5
  from visualdl.writer.record_writer import RecordFileWriter
label_desc: Use image node_id 3 for calling the LogWriter obj's underlying member method code with example usage: obj._get_file_writer() and returns: self, self