How can I output NLog material to vs2008 output window?

I use NLog to register my things. I am trying to send the output to the console (or coloredconsole) ... which I hope will go to the Visual Studio "OUTPUT" window for any ASP.NET/application/mvc application.

This is not true. If I change the target to "file", then it works for sure.

Can NLog be displayed in the output window for web applications?

+54
nlog
Oct 31 '08 at 2:37
source share
1 answer

This configuration file can be used (nlog.config in the application path):

<?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> <target name="debugger" xsi:type="Debugger" layout="${logger}::${message}"/> </targets> <rules> <logger name="*" minlevel="Trace" writeTo="debugger" /> </rules> </nlog> 

-Scott

+111
Nov 04 '08 at 1:41
source share



All Articles