Nlog Dont Work on my web services

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nlog Dont Work on my web services

mask220
Nlog Dont Work on my web services i did my Nlog.config and it cant be create or even work on my web services and show me these error
these my Nlog
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        autoReload="true" throwExceptions="true"
  internalLogFile="c:\NLog.txt"
  internalLogLevel="Error">
  <targets>
    <target xsi:type="File" name="csv"
  fileName="${basedir}/logs/logWebServices.txt"
  archiveFileName="${basedir}/logs/log.{##}.txt"
  archiveEvery="Day" archiveNumbering="Rolling" maxArchiveFiles="28"
  concurrentWrites="true" keepFileOpen="true" encoding="utf-8">
      <layout xsi:type="CSVLayout">
        <column name="Time" layout="${longdate}" />
        <column name="Thread ID" layout="${threadid}" />
        <column name="Message" layout="${message}" />
        <column name="Exception" layout="${exception:format=message,stacktrace}" />
        <column name="Logger" layout="${logger}" />
        <column name="Level" layout="${level}" />
      </layout>
    </target>
  </targets>

  <rules>
    <logger name="*" minlevel="Debug" writeTo="csv" />
  </rules>
 
</nlog>



Reply | Threaded
Open this post in threaded view
|

Re: Nlog Dont Work on my web services

Jason LaFlair
Administrator
Does your web service have access to write to the "${basedir}/logs/" directory?  By default it won't.