Hi all
I am trying to use Nlog,and copy the example from document.but it dose not work. these is no any info send to the console.
dose anyone can figure it out?
Thanks a lot
xtra
here is my NLog.config
<?xml version="1.0" encoding="utf-8" ?>
<!--
This file needs to be put in the application directory. Make sure to set
'Copy to Output Directory' option in Visual Studio.
-->
<nlog xmlns="
http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="ws" xsi:type="Console">
</target>
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="ws" />
</rules>
</nlog>
this is my application file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;
namespace ConsoleApplication1
{
class Program
{
private static Logger logger = LogManager.GetCurrentClassLogger();
static void Main(string[] args)
{
logger.Debug("hello");
}
}