title: Will Log writing in text file affect performance of a website?
body: <p>I have an ASP.NET website. I am writing log files to get total time span for the page.Does writing log in txt files affect the performance of my program? I am logging this in events like <code>OnUnload</code>.</p>
  
  <pre><code>string logString = string.Format("The total time span for the '{0}' is {1}ms",
                                   _page, 
                                   span.TotalMilliseconds);
  WriteLog(logString);
  </code></pre>
  
  <p>Log excerpt:</p>
  
  <pre><code>8/6/2013 05:38:27]:The total time span for the 'Assign' is 3121.1785ms
  [8/6/2013 05:38:27]:The total time span for the 'Assign' is 5.0002ms
  [8/6/2013 05:38:27]:The total time span for the 'Assign' is 5.0003ms
  [8/6/2013 05:38:27]:The total time span for the 'Assign' is 4.0002ms
  [8/6/2013 05:38:27]:The total time span for the 'Assign' is 5.0003ms
  [8/6/2013 05:38:27]:The total time span for the 'Assign' is 6.0004ms
  </code></pre>