/// <summary>
 /// Logs a message with the data of the <see cref="FtpResponse"/>
 /// </summary>
 /// <param name="log">The <see cref="IFtpLog"/> to use</param>
 /// <param name="response">The <see cref="FtpResponse"/> to log</param>
 /// <remarks>
 /// It logs either a trace, debug, or warning message depending on the
 /// <see cref="FtpResponse.Code"/>.
 /// </remarks>
 public static void Log([NotNull] this IFtpLog log, [NotNull] FtpResponse response)
 {
     if (response.Code >= 200 && response.Code < 300)
     {
         log.Trace(response);
     }
     else if (response.Code >= 300 && response.Code < 400)
     {
         log.Info(response);
     }
     else if (response.Code < 200)
     {
         log.Debug(response);
     }
     else
     {
         log.Warn(response);
     }
 }
 /// <summary>
 /// Logs a warning message with the data of the <see cref="FtpResponse"/>
 /// </summary>
 /// <param name="log">The <see cref="IFtpLog"/> to use</param>
 /// <param name="response">The <see cref="FtpResponse"/> to log</param>
 public static void Warn([NotNull] this IFtpLog log, [NotNull] FtpResponse response)
 {
     log.Warn("{0}", response);
 }