Hi folks,
i'm trying to set the output to the visual studio 2008 output window. This is the target window when you do the following in code
System.Diagnostics.WriteLine("blah");
I have the following config.
<?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="console" xsi:type="Console" layout="${date:format=HH\:mm\:ss}|${level}|${stacktrace}|${message}" />
<target name="file" xsi:type="File" fileName="${basedir}/Logs/LolBubs_Errors.log" layout="${date}: ${message}" />
<target name="eventlog" xsi:type="EventLog" source="NLog" log="Application" layout="${date}: ${message} ${stacktrace}" />
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="console" />
</rules>
</nlog>
if i set the writeTo to be console .. nothing is outputted.
if i set the writeTo to be file ... it works 100%
this is for asp.net web applications/sites.
can anyone confirm if it's possible and if so, what i'm doing wrong?
i'm also calling the logger.Info("message") method.
cheers!