title: Adding a parameter to a WCF .svc file
body: <p>I would like to be able to pass application specific configuration information to my WCF by placing a parameter in the service.svc file.</p>
  
  <p>I have a standard error logging web service that I call from different apps.  I would like to be able to call the service with different names and have the service know how it was called and write to different files.  For instance, the app will call Warning.svc, Serious.svc, or Critical.svc and depending on which is called write the message to the appropriate file.</p>
  
  <p>So my thought is to put a parameter in the .svc file telling the WCF how it was called.  If not that, is there a means to get the name of the svc file from within my code?</p>
  
  <p>I know that I could have different Methods for each call, but that would require modifying the WCF when I want to add an additional type.  Whereas is I could just add another .svc the functioality would be added without having to modify any code.</p>