title: Cant get NLog to work
body: <p>So I set up NLog config file supposedly correct (did the same thing i did on a working project) however in this project it fails for some reason the database Logs table is empty. Can somone tell me what may cause the issue?</p>
  
  <p>Heres the code</p>
  
  <p>Controller</p>
  
  <pre><code>public class HomeController : Controller    
  { 
         private ShopModel db = new ShopModel();
         private static Logger logger = LogManager.GetLogger("dbloger");
         public ActionResult Index()
          {   
              logger.Info("Test");
              return View(db.Users);
          }
  }
  </code></pre>
  
  <p>NLog.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        autoReload="true"&gt;
    &lt;targets async="true"&gt;
  
      &lt;target name="dbl" xsi:type="Database" connectionStringName="ShopModel"
             dbProvider="System.Data.EntityClient"
             commandText=" INSERT INTO Logs ([Usrname] ,[Log], [Date]) VALUES (@Email,@Message, @Date);" &gt;
  
        &lt;parameter name="@Message" layout="${message}"/&gt;
        &lt;parameter name="@Date" layout="${longdate}" /&gt;
        &lt;parameter name="@Email" layout="${gdc:Email}" /&gt;
  
      &lt;/target &gt;
    &lt;/targets&gt;
  
    &lt;rules&gt;
  
      &lt;logger name="*" minlevel="Trace" writeTo="dbl" /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>
  
  <p>And connection string in web.config</p>
  
  <pre><code>&lt;connectionStrings&gt;
  
   &lt;add name="ShopModel" connectionString="metadata=res://*/Models.ShopModel.csdl|res://*/Models.ShopModel.ssdl|res://*/Models.ShopModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=(LocalDB)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\Shopdb.mdf;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  
  &lt;/connectionStrings&gt;
  </code></pre>