How do I supply values to an referenced assembly without calling a method it explicitly?
<p>Currently I have a static class that I use as my logging module. I’ve added the class to my visual studio solution. Within the class I’ve specified the name and location of the log file to use.
Which lets me do stuff like this – which I like and want.</p>

<pre><code>Logger.Information(“Page_Load”,”controls loaded correctly”);
</code></pre>

<p>I’d like to refactor the code and move the logging functionality into a separately compiled assembly, if I did this I would then need to pass in the log file name and location to save the files too. </p>

<p>However I don’t want to have to supply this information every time I call the ‘Logging’ method, this would be <strong>bad...</strong></p>

<pre><code>Logger.Informtaion(“Page_Load”,”controls loaded correctly”,”logfile.txt”,”c:\temp”);
</code></pre>

<p>Is there any way I can supply this information without having to specify it within each page or via the method call.</p>
