private void LogMessage(string msg, string src) { Log log = new Log(); if (SmtpConfig.LogToText) { log.logToTextFile(SmtpConfig.LogPath, msg, src); } }