class_docstr: Log to local file system in yaml and CSV format.
  
  Logs are saved to ``os.path.join(save_dir, name, version)``.
  
  Example:
      >>> from lightning.pytorch import Trainer
      >>> from lightning.pytorch.loggers import CSVLogger
      >>> logger = CSVLogger("logs", name="my_exp_name")
      >>> trainer = Trainer(logger=logger)
  
  Args:
      save_dir: Save directory
      name: Experiment name. Defaults to ``'lightning_logs'``.
      version: Experiment version. If version is not specified the logger inspects the save
          directory for existing versions, then automatically assigns the next available version.
      prefix: A string to put at the beginning of metric keys.
      flush_logs_every_n_steps: How often to flush logs to disk (defaults to every 100 steps).
class_docstr_tok: ["Log","to","local","file","system","in","yaml","and","CSV","format",".","Logs","are","saved","to","``","os.path.join","(","save_dir",",","name",",","version",")","``",".","Example",":",">",">",">","from","lightning.pytorch","import","Trainer",">",">",">","from","lightning.pytorch.loggers","import","CSVLogger",">",">",">","logger","=","CSVLogger","(","``","logs","''",",","name=","''","my_exp_name","''",")",">",">",">","trainer","=","Trainer","(","logger=logger",")","Args",":","save_dir",":","Save","directory","name",":","Experiment","name",".","Defaults","to","``","'lightning_logs","'","``",".","version",":","Experiment","version",".","If","version","is","not","specified","the","logger","inspects","the","save","directory","for","existing","versions",",","then","automatically","assigns","the","next","available","version",".","prefix",":","A","string","to","put","at","the","beginning","of","metric","keys",".","flush_logs_every_n_steps",":","How","often","to","flush","logs","to","disk","(","defaults","to","every","100","steps",")","."]
docstr: The current directory where logs are saved.
  
  Returns:
      The path to current directory where logs are saved.
docstr_tok: ["The","current","directory","where","logs","are","saved",".","Returns",":","The","path","to","current","directory","where","logs","are","saved","."]
code: def save_dir(self) -> str:
      """The current directory where logs are saved.
  
      Returns:
          The path to current directory where logs are saved.
  
      """
      return self._save_dir
  
imports: import logging
  import os
  from argparse import Namespace
  from typing import Any, Dict, Optional, Union
  from typing_extensions import override
  from lightning.fabric.loggers.csv_logs import CSVLogger
  from lightning.fabric.loggers.csv_logs import _ExperimentWriter
  from lightning.fabric.loggers.logger import rank_zero_experiment
  from lightning.fabric.utilities.logger import _convert_params
  from lightning.fabric.utilities.types import _PATH
  from lightning.pytorch.core.saving import save_hparams_to_yaml
  from lightning.pytorch.loggers.logger import Logger
  from lightning.pytorch.utilities.rank_zero import rank_zero_only
label_desc: Use image node_id 4 for calling the CSVLogger obj's underlying member method code with example usage: obj.save_dir() and returns: self