class_docstr: A Logfile class with different policies for file creation
class_docstr_tok: ["A","Logfile","class","with","different","policies","for","file","creation"]
docstr: Fully stop logging and close log file.
  
  In order to start logging again, a new logstart() call needs to be
  made, possibly (though not necessarily) with a new filename, mode and
  other options.
docstr_tok: ["Fully","stop","logging","and","close","log","file",".","In","order","to","start","logging","again",",","a","new","logstart","(",")","call","needs","to","be","made",",","possibly","(","though","not","necessarily",")","with","a","new","filename",",","mode","and","other","options","."]
code: def logstop(self):
      """Fully stop logging and close log file.
  
      In order to start logging again, a new logstart() call needs to be
      made, possibly (though not necessarily) with a new filename, mode and
      other options."""
  
      if self.logfile is not None:
          self.logfile.close()
          self.logfile = None
      else:
          print("Logging hadn't been started.")
      self.log_active = False
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/logger.py
imports: import glob
  import io
  import logging
  import os
  import time
label_desc: Use image node_id 9 for calling the Logger obj's underlying member method code with example usage: obj.logstop() without return types