5
ile oturum açmıyor NLog aracılığıyla uygulamamda günlük kaydı yapıyorum. ClickOnce ile app dışarı dağıtırken, hiçbir log.txt dosyasıNLog, ClickOnce
<?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">
<targets async="true">
<target xsi:type="File"
name="ExceptionTarget"
fileName="LOG.txt"
layout="${date:format=dd MMM yyyy HH-mm-ss} ${uppercase:${level}} ${newline}${message} ${exception::maxInnerExceptionLevel=5:format=ToString}${newline}${stacktrace}${newline}"/>
</targets>
<targets async="true">
<target xsi:type="File"
name="InfoTarget"
fileName="LOG.txt"
layout="${date:format=mm-ss} ${uppercase:${level}} ${newline}${message} ${newline}"/>
</targets>
<rules>
<logger name="*" level="Error" writeTo="ExceptionTarget"/>
<logger name="*" level="Info" writeTo="InfoTarget"/>
</rules>
</nlog>
yaratılıyor: Bu benim Nlog.Config olduğunu. Hata oluşmuyor ve uygulamanız normal çalışıyor, ancak hiçbir şey olmuyor.
Bu sorun nasıl çözülür?