We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

implementing IFtpLogProvider interface's Log methodRSS

1 reply

Last post May 21, 2009 08:28 PM by robmcm

  • implementing IFtpLogProvider interface's Log method

    Jan 26, 2009 11:14 AM|k_aftab|LINK


    I have extended the IFtpLogProvider interface in Microsoft.Web.FtpServer and have created a class:

    public class FtpProvider : BaseProvider, IFtpLogProvider
       public void Log(FtpLogEntry logEntry)
         eventLog.WriteEntry("Entering Log", EventLogEntryType.Information);
         // do something

    I installed this into the GAC and added the new section in the applicationHost.config file as follows:

         <add name="Webfusion.FtpProvider" enabled="true" />

    but it doesn't work at all, i don't see any information in the eventlog, i have tried placing these settings in all the sections of config file but it still doesn't work.

    CusttomLogging is a valid element as it is defined in the FTP_Schema.xml as follows:

    <element name="customLogging">
          <element name="providers">
            <collection addElement="add" clearElement="clear" removeElement="remove" allowUnrecognizedAttributes="true">
              <attribute name="name" type="string" required="true" isUniqueKey="true"/>
              <attribute name="enabled" type="bool" defaultValue="true" />

    has anyone done this kind of stuff before or know how to do it? any help or pointer are much appreciated 




  • Re: implementing IFtpLogProvider interface's Log method

    May 21, 2009 08:28 PM|robmcm|LINK

    ftp extensibility

    Robert McMurray [MSFT]