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: Determine if rollover should occur.
  
  For those that are keeping track. This differs from the standard
  library's RotatingLogHandler class. Because there is no promise to keep
  the file size under maxBytes we ignore the length of the current record.
docstr_tok: ["Determine","if","rollover","should","occur",".","For","those","that","are","keeping","track",".","This","differs","from","the","standard","library","'s","RotatingLogHandler","class",".","Because","there","is","no","promise","to","keep","the","file","size","under","maxBytes","we","ignore","the","length","of","the","current","record","."]
code: def shouldRollover(self, record):
      """
      Determine if rollover should occur.
  
      For those that are keeping track. This differs from the standard
      library's RotatingLogHandler class. Because there is no promise to keep
      the file size under maxBytes we ignore the length of the current record.
      """
      del record  # avoid pychecker warnings
      if self._shouldRollover():
          # if some other process already did the rollover we might
          # checked log.1, so we reopen the stream and check again on
          # the right log file
          self.stream.close()
          self._openFile(self.mode)
          return self._shouldRollover()
      return 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 10 for calling the ConcurrentRotatingFileHandler obj's underlying member method code with example usage: obj.shouldRollover(record) and returns: False, self