Hi,
I am trying to implement a simple log using Nlog 1.0, using the following code
Dim _logger = LogManager.GetCurrentClassLogger()
_logger.Debug("Iain")
And the following NLog.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="file" xsi:type="File" fileName="${basedir}/Site.log" layout="${date}: ${message}"/>
<target name="eventlog" xsi:type="EventLog" source="My App" log="Application" layout="${date}: ${message} ${stacktrace}"/>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="file" />
<logger name="*" minlevel="Fatal" writeTo="eventlog" />
</rules>
</nlog>
The app just dosnt seem to be logging, any ideas?
Cheers
Iain