void OnFTPSClientLogCommand(object sender, LogCommandEventArgs args) { if (FtpCommand != null) { FtpCommand(this, new LogEventArgs(args.CommandText)); } }
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); }
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); }