class_docstr: Handler for logging to a set of files, which switches from one file to the
  next when the current file reaches a certain size. Multiple processes can
  write to the log file concurrently, but this may mean that the file will
  exceed the given size.
class_docstr_tok: ["Handler","for","logging","to","a","set","of","files",",","which","switches","from","one","file","to","the","next","when","the","current","file","reaches","a","certain","size",".","Multiple","processes","can","write","to","the","log","file","concurrently",",","but","this","may","mean","that","the","file","will","exceed","the","given","size","."]
docstr: A more colorful version of _degade(). (This is enabled by passing
  "debug=True" at initialization).
docstr_tok: ["A","more","colorful","version","of","_degade","(",")",".","(","This","is","enabled","by","passing","''","debug=True","''","at","initialization",")","."]
code: def _degrade_debug(self, degrade, msg, *args):
      """A more colorful version of _degade(). (This is enabled by passing
      "debug=True" at initialization).
      """
      if degrade:
          if not self._rotateFailed:
              sys.stderr.write(
                  "Degrade mode - ENTERING - (pid=%d)  %s\n"
                  % (os.getpid(), msg % args)
              )
              self._rotateFailed = True
      else:
          if self._rotateFailed:
              sys.stderr.write(
                  "Degrade mode - EXITING  - (pid=%d)   %s\n"
                  % (os.getpid(), msg % args)
              )
              self._rotateFailed = False
  
file_path: nipype/nipype/external/cloghandler.py
imports: import os
  import sys
  from random import randint
  from logging import Handler
  from logging.handlers import BaseRotatingHandler
  from filelock import SoftFileLock
  import logging.handlers
label_desc: Use image node_id 8 for calling the ConcurrentRotatingFileHandler obj's underlying member method code with example usage: obj._degrade_debug(degrade, msg) without return types