I wonder if it\'s possible to have output log for my FTP client using FtpWebRequest
.
Something like this:
check these following links for reference. if you have IIS 7 then it is possible to implement your own functionality.
implementing IFtpLogProvider interface's Log method
using System;
using System.IO;
using Microsoft.Web.FtpServer;
using System.Diagnostics;
using System.Diagnostics.Eventing;
namespace FtpLogging
{
public class FtpLogDemo : BaseProvider,
IFtpLogProvider
{
void IFtpLogProvider.Log(FtpLogEntry loggingParameters)
{
.......
Ref:
IIS FTP 7.5 Extensibility (IFtpLogProvider and logging FTP failures to the event log)
Problem writing to a file (C#)