Ejemplo n.º 1
0
        static void client_LogCommand(object sender, LogCommandEventArgs args)
        {
            if (options.logFileTimeStamps)
                swLog.WriteLine(DateTime.Now.ToString(logDateTimeFormat));

            // Hide password
            string cmdText = args.CommandText;
            if (cmdText.StartsWith("PASS "))
                cmdText = "PASS ********";

            swLog.WriteLine(cmdText);
        }
Ejemplo n.º 2
0
 void OnFTPSClientLogCommand(object sender, LogCommandEventArgs args)
 {
     if (FtpCommand != null)
     {
         FtpCommand(this, new LogEventArgs(args.CommandText));
     }
 }