The FTP and SFTP are different protocols, so they log both different commands and responses, but I do not think that they are any different in their structure. However, if you would like to filter out the "TLS, SSH, Command and Response" areas and only log the info: area, then try this custom "InfoFileLogWriter" that does not log the commands and responses sent from/to the client nor the SSH or TLS details:
class InfoFileLogWriter : FileLogWriter
{
public InfoFileLogWriter(string path) : base(path)
{
Level = LogLevel.Info;
}
public override void Write(LogLevel level, Type objectType, int objectId, string area, string message, byte[] buffer, int offset, int length)
{
// only log messages that have "Info" area (this will exclude the SFTP commands and responses as well as other low-level information from the log).
if (area == "Info")
base.Write(level, objectType, objectId, area, message, buffer, offset, length);
}
public override void Write(LogLevel level, Type objectType, int objectId, string area, string message)
{
if (area == "Info")
base.Write(level, objectType, objectId, area, message);
}
}