Is there a way to use Server.MapPath in a class in my asp.net application
<p>I have a log.txt file on the root of my application. I would like to be able to have my log class be able to access this file and write to it. But i am not sure how to tell it the correct path of the file in my code. Thanks for any help</p>

<pre><code>using (StreamWriter w = File.AppendText("log.txt"))
    {
         Log(e.ToString(),w);
         w.Close();
    }
</code></pre>
