.Net/C# NLog database connection is not working
979840Feb 20 2013 — edited Feb 21 2013here is my .config file
<target name="NLOGDatabase" xsi:type="Database" keepConnection="false" useTransactions="true"
dbProvider="Oracle.DataAccess"
connectionString="Data Source=devl;User Id=net_app;Password=net_app"
commandText="insert into net_app.Web_Application_Logging( LOG_LEVEL ,MESSAGE) values( '2','2')">
<parameter name="LOGLEVEL" layout="${level:uppercase=true}"/>
<parameter name="MESSAGE" layout="${message}"/>
</target>
in my project i have a reference to:
Oracle.DataAccess version 4.112.3.0
What am i doing wrong?
Is there better way to do it?
Edited by: 976837 on Feb 21, 2013 8:06 AM