class_docstr: Nipype logging class
class_docstr_tok: ["Nipype","logging","class"]
code: def enable_file_logging(self):
      config = self._config
      LOG_FILENAME = os.path.join(
          config.get("logging", "log_directory"), "pypeline.log"
      )
      hdlr = RFHandler(
          LOG_FILENAME,
          maxBytes=int(config.get("logging", "log_size")),
          backupCount=int(config.get("logging", "log_rotate")),
      )
      formatter = logging.Formatter(fmt=self.fmt, datefmt=self.datefmt)
      hdlr.setFormatter(formatter)
      self._logger.addHandler(hdlr)
      self._utlogger.addHandler(hdlr)
      self._iflogger.addHandler(hdlr)
      self._fmlogger.addHandler(hdlr)
      self._hdlr = hdlr
  
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 2 for calling the Logging obj's underlying member method code with example usage: obj.enable_file_logging() without return types