Code Coverage by Clover.NET

NLog Configuration on a Microsoft Office Shared COM Add-In

View: New views
1 Messages — Rating Filter:   Alert me  

NLog Configuration on a Microsoft Office Shared COM Add-In

by abarreras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I trying to implement NLog on a Microsoft Office Shared COM Add-In for Microsoft Project (a .dll).  I can't get NLog to log to a file. Is there some special configuration required other than the standard configuration?  I'm dropping my configuration file in the base directory in the VS 2003 project.  Here's my configuration file:

<?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}/error.txt"
            layout="${longdate}|${level}|${stacktrace}|${message}"/>
  </targets>
  <rules>
    <logger name="*"  minlevel="Info"  writeTo="file"/>
  </rules>
</nlog>

Any ideas?

-- Andy