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