title: Parse log file by log line
body: <p>I'm using <code>log4net</code> and it occasionally writes an exception to the log file. Now I want to insert each log line, which can be more than 1 line (e.g. exceptions including stacktrace) long,  so </p>
  
  <pre><code>foreach(var line in File.ReadAllLines(...)){}
  </code></pre>
  
  <p>would break up exceptions. Here's a sample log file:</p>
  
  <pre><code>2017-02-22 14:37:17,212 [Foo.Bar]  INFO  - This is something nice to log
  System.InvalidCastException: Specified cast is not valid.
     at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
     at System.Data.DataRowExtensions.Field[T](DataRow row, String columnName)
     at Foo.Bar.&lt;&gt;c__DisplayClass282_0.&lt;FooBar&gt;b__0(DataRow row) in somefile.cs:line 2657
     at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
     at Foo.Bar.&lt;FooBar&gt;d__282.MoveNext() in somefile.cs:line 2657
  </code></pre>
  
  <p>I want the very first line to be parsed in a string, as well as the whole remaining rest (in this example, the exception in general).</p>
  
  <p>Any good ideas to get started?</p>