code: def libvlc_log_set_file(p_instance, stream):
      '''Sets up logging to a file.
      @param p_instance: libvlc instance.
      @param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
      @version: LibVLC 2.1.0 or later.
      '''
      f = _Cfunctions.get('libvlc_log_set_file', None) or \
          _Cfunction('libvlc_log_set_file', ((1,), (1,),), None,
                      None, Instance, FILE_ptr)
      return f(p_instance, streamf libvlc_log_set_file(p_instance, stream):
      '''Sets up logging to a file.
      @param p_instance: libvlc instance.
      @param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
      @version: LibVLC 2.1.0 or later.
      '''
      f = _Cfunctions.get('libvlc_log_set_file', None) or \
          _Cfunction('libvlc_log_set_file', ((1,), (1,),), None,
                      None, Instance, FILE_ptr)
      return f(p_instance, stream)
docs: Sets up logging to a file.
      @param p_instance: libvlc instance.
      @param stream: FILE pointer opened for writing (the FILE pointer must remain valid until L{libvlc_log_unset}()).
      @version: LibVLC 2.1.0 or later.