/// <summary> /// Appends a command to the log stream. /// </summary> /// <param name="sqlHelper">The SQL helper executing the command.</param> /// <param name="commandText">The command text.</param> /// <param name="parameters">The parameters.</param> private void AppendToLog(ISqlHelper sqlHelper, string commandText, IParameter[] parameters) { m_LogStream.WriteLine(LogLineFormat, DateTime.Now, new StackFrame(1).GetMethod().Name, m_SqlParser.ApplyParameters(commandText, parameters)); m_LogStream.Flush(); }