class_docstr: A Logfile class with different policies for file creation
class_docstr_tok: ["A","Logfile","class","with","different","policies","for","file","creation"]
docstr: Write the sources to a log.
  
  Inputs:
  
  - line_mod: possibly modified input, such as the transformations made
    by input prefilters or input handlers of various kinds. This should
    always be valid Python.
  
  - line_ori: unmodified input line from the user. This is not
    necessarily valid Python.
docstr_tok: ["Write","the","sources","to","a","log",".","Inputs",":","-","line_mod",":","possibly","modified","input",",","such","as","the","transformations","made","by","input","prefilters","or","input","handlers","of","various","kinds",".","This","should","always","be","valid","Python",".","-","line_ori",":","unmodified","input","line","from","the","user",".","This","is","not","necessarily","valid","Python","."]
code: def log(self, line_mod, line_ori):
      """Write the sources to a log.
  
      Inputs:
  
      - line_mod: possibly modified input, such as the transformations made
        by input prefilters or input handlers of various kinds. This should
        always be valid Python.
  
      - line_ori: unmodified input line from the user. This is not
        necessarily valid Python.
      """
  
      # Write the log line, but decide which one according to the
      # log_raw_input flag, set when the log is started.
      if self.log_raw_input:
          self.log_write(line_ori)
      else:
          self.log_write(line_mod)
  
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 7 for calling the Logger obj's underlying member method code with example usage: obj.log(line_mod, line_ori) without return types