How to export Event Viewer logs to csv using C#
<p>We are looking into writing a C# program which will export Event Viewer logs into csv file.</p>

<pre><code>DateTime              |Level    | Source | EventID | Detail
06/16/2016 10:11:01    Error       ABC      100      Detail of event error
</code></pre>

<p>Can you please guide/hint if you knows anything which suits for this?
Thank You!</p>