class_docstr: This is a distributed event logger class essentially based on :class:`logging`.
  
  Args:
      name (str): The name of the logger.
  
  Note:
      The parallel_mode used in ``info``, ``warning``, ``debug`` and ``error``
      should be concluded in ``ParallelMode``. More details about ``ParallelMode`` could be found
      in `parallel_mode <https://github.com/hpcaitech/ColossalAI/blob/main/colossalai/context/parallel_mode.py>`_.
class_docstr_tok: ["This","is","a","distributed","event","logger","class","essentially","based","on",":","class",":","`","logging","`",".","Args",":","name","(","str",")",":","The","name","of","the","logger",".","Note",":","The","parallel_mode","used","in","``","info","``",",","``","warning","``",",","``","debug","``","and","``","error","``","should","be","concluded","in","``","ParallelMode","``",".","More","details","about","``","ParallelMode","``","could","be","found","in","`","parallel_mode","<","https",":","\/\/github.com\/hpcaitech\/ColossalAI\/blob\/main\/colossalai\/context\/parallel_mode.py",">","`","_","."]
docstr: Get the unique single logger instance based on name.
  
  Args:
      name (str): The name of the logger.
  
  Returns:
      DistributedLogger: A DistributedLogger object
docstr_tok: ["Get","the","unique","single","logger","instance","based","on","name",".","Args",":","name","(","str",")",":","The","name","of","the","logger",".","Returns",":","DistributedLogger",":","A","DistributedLogger","object"]
code: def get_instance(name: str):
      """Get the unique single logger instance based on name.
  
      Args:
          name (str): The name of the logger.
  
      Returns:
          DistributedLogger: A DistributedLogger object
      """
      if name in DistributedLogger.__instances:
          return DistributedLogger.__instances[name]
      else:
          logger = DistributedLogger(name=name)
          return logger
  
file_path: colossalai/colossalai/logging/logger.py
imports: import inspect
  import logging
  from pathlib import Path
  from typing import List, Union
  import torch.distributed
label_desc: Use image node_id 1 for calling the DistributedLogger obj's underlying member method code with example usage: obj.get_instance(name) and returns: DistributedLogger, logger