Example #1
0
 void OnFTPSClientLogCommand(object sender, LogCommandEventArgs args)
 {
     if (FtpCommand != null)
     {
         FtpCommand(this, new LogEventArgs(args.CommandText));
     }
 }
Example #2
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);
        }
Example #3
0
        static void client_LogCommand(object sender, LogCommandEventArgs args)
        {
            if (_options.logFileTimeStamps)
            {
                _swLog.WriteLine(DateTime.Now.ToString(LOG_DATE_TIME_FORMAT));
            }

            // Hide password
            var cmdText = args.CommandText;

            if (cmdText.StartsWith("PASS "))
            {
                cmdText = "PASS ********";
            }

            _swLog.WriteLine(cmdText);
        }