class_docstr: A Logfile class with different policies for file creation
class_docstr_tok: ["A","Logfile","class","with","different","policies","for","file","creation"]
code: def __init__(
      self, home_dir, logfname="Logger.log", loghead="", logmode="over"
  ):
      # this is the full ipython instance, we need some attributes from it
      # which won't exist until later. What a mess, clean up later...
      self.home_dir = home_dir
  
      self.logfname = logfname
      self.loghead = loghead
      self.logmode = logmode
      self.logfile = None
  
      # Whether to log raw or processed input
      self.log_raw_input = False
  
      # whether to also log output
      self.log_output = False
  
      # whether to put timestamps before each log entry
      self.timestamp = False
  
      # activity control flags
      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 1 to create a new Logger object from inherited base classes: object with example: obj = Logger(home_dir, logfname, loghead, logmode)