NLog - StackOverflow exception/NLog.NLogRuntimeException occurred with MySQL database target
By : gunjan sharma
Date : March 29 2020, 07:55 AM
I wish this helpful for you I've configured NLog to log errors/logs to two MySQL/Database targets: , Turns out that somewhere in my code base was this line invoked: code :
Trace.Listeners.Add(new NLogTraceListener());
|
HTTP Error 401 with NLog WebService target with windows auth
By : Vijay Kumar Singh
Date : March 29 2020, 07:55 AM
|
NLog - Invalid xsi:type 'http://www.nlog-project.org/schemas/NLog.xsd:AzureAppendBlob'
By : user2621835
Date : March 29 2020, 07:55 AM
This might help you After some analysis I found that the issue is the NLog version NLog.AzureAppendBlob is using. I have removed that package and used NLog.Extensions.AzureStorage and it started working fine for me.
|
getting {aspnet-request} to work properly without referencing NLog.Web from project that is calling NLog
By : user3254422
Date : March 29 2020, 07:55 AM
To fix this issue WebApplication project was referencing EventLog class library, but one of the dlls was not being copied over to the output of the project. This was due to the fact that even though the class library was referencing this dll, there was no actual call or usage of the dll besides the reference, there needs to be an explicit call to this dll in order for it to get copied over to the project. So I added a dummy call to a random property in NLog.Web.dll inside the class library and now the project that references the class library gets the NLog.Web.dll in its output folder(bin).
|
NLog Exception when parsing nlog.config - Target cannot be found: 'EventLog'
By : Dag
Date : January 02 2021, 06:48 AM
hope this fix your issue About the Target cannot be found: 'EventLog' error The "Target cannot be found" error is thrown when the Target class cannot be instantiated. As you could plug in targets into NLog, NLog don't know which are available forehand. Please also note that not all targets are available in all platforms. code :
<extensions>
<add assembly="NLog.WindowsEventLog"/>
</extensions>
<nlog>
<extensions>
<add assembly="NLog.Targets.ElasticSearch"/>
</extensions>
<targets>
<target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">
<target xsi:type="ElasticSearch"/>
</target>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="elastic" />
</rules>
</nlog>
|