title: How to use database logging for a WCF Service application using Enterprise Library 6
body: <p>For Enterprise Library 6 logging we need to add below mentioned line in  <strong>Startup.cs</strong> for Web application,then only we can able use database logging.</p>
  
  <pre><code>DatabaseFactory.SetDatabaseProviderFactory(new DatabaseProviderFactory());
  </code></pre>
  
  <p>Same way, where should I add the above mentioned line for WCF Service application to use database logging???</p>