parameters: (self, filename, mode='a', encoding=None, delay=0)
docstring: Open the specified file and use it as the stream for logging.
docstring_summary: Open the specified file and use it as the stream for logging.
docstring_tokens: Open the specified file and use it as the stream for logging .
function: def __init__(self, filename, mode='a', encoding=None, delay=0):
          """
          Open the specified file and use it as the stream for logging.
          """
          #keep the absolute path, otherwise derived classes which use this
          #may come a cropper when the current directory changes
          if codecs is None:
              encoding = None
          self.baseFilename = os.path.abspath(filename)
          self.mode = mode
          self.encoding = encoding
          if delay:
              #We don't open the stream, but we still need to call the
              #Handler constructor to set level, formatter, lock etc.
              Handler.__init__(self)
              self.stream = None
          else:
              StreamHandler.__init__(self, self._open())
function_tokens: def __init__ ( self , filename , mode = 'a' , encoding = None , delay = 0 ) : #keep the absolute path, otherwise derived classes which use this #may come a cropper when the current directory changes if codecs is None : encoding = None self . baseFilename = os . path . abspath ( filename ) self . mode = mode self . encoding = encoding if delay : #We don't open the stream, but we still need to call the #Handler constructor to set level, formatter, lock etc. Handler . __init__ ( self ) self . stream = None else : StreamHandler . __init__ ( self , self . _open ( ) )