class_docstr: Nipype logging class
class_docstr_tok: ["Nipype","logging","class"]
code: def __init__(self, config):
      self._config = config
      # scope our logger to not interfere with user
      _nipype_logger = logging.getLogger("nipype")
      _nipype_hdlr = logging.StreamHandler(stream=sys.stdout)
      _nipype_hdlr.setFormatter(
          logging.Formatter(fmt=self.fmt, datefmt=self.datefmt)
      )
      # if StreamHandler was added, do not stack
      if not len(_nipype_logger.handlers):
          _nipype_logger.addHandler(_nipype_hdlr)
  
      self._logger = logging.getLogger("nipype.workflow")
      self._utlogger = logging.getLogger("nipype.utils")
      self._fmlogger = logging.getLogger("nipype.filemanip")
      self._iflogger = logging.getLogger("nipype.interface")
  
      self.loggers = {
          "nipype.workflow": self._logger,
          "nipype.utils": self._utlogger,
          "nipype.filemanip": self._fmlogger,
          "nipype.interface": self._iflogger,
      }
      self._hdlr = None
      self.update_logging(self._config)
  
file_path: nipype/nipype/utils/logger.py
imports: import logging
  from warnings import warn
  import os
  import sys
  from .misc import str2bool
label_desc: Use image node_id 1 to create a new Logging object  with example: obj = Logging(config)