Amazon.KinesisTap.DiagnosticTool.Core/RecordParserValidator.cs
/// <summary>
/// Retrieve the content from a log
/// </summary>
/// <param name="directory"></param>
/// <param name="logName"></param>
/// <returns></returns>
Retrieve the content from a log
Retrieve the content from a log
private string GetLog(string directory, string logName)
        {
            string line;
            StringBuilder sb = new StringBuilder();
            using (StreamReader LogReader = File.OpenText(Path.Combine(directory, logName)))
            {
                while ((line = LogReader.ReadLine()) != null)
                {
                    sb.AppendLine(line);
                }
            }
            return sb.ToString();
        }
private string GetLog ( string directory , string logName ) { string line ; StringBuilder sb = new StringBuilder ( ) ; using ( StreamReader LogReader = File . OpenText ( Path . Combine ( directory , logName ) ) ) { while ( ( line = LogReader . ReadLine ( ) ) != null ) { sb . AppendLine ( line ) ; } } return sb . ToString ( ) ; }
Retrieve the content from a log
Retrieve the content from a log
None
directory
string
None
logName
string
None