Configure NLog xml target for L4NDash board

May 9, 2012 at 5:07 PM
Edited May 9, 2012 at 5:10 PM


I am using NLog as the logger and am using xml and SQL database as the targets in the NLog. The NLog does the logging very well in database, text file and in xml. 

I would like to use L4NDash as my monitoring tool and I have successfully set it up to read the log from the database and it works fine. But I cant read from the NLog xml file. It doesn't support the NLog xml target layout. 

I am using the config 

 <target name ="xmlFile" xsi:type="File" fileName="${basedir}/log.xml"

layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=true:includeNDC=true:includeNLogData=true:}" >

and the xml log output is

<log4j:event logger="database" level="ERROR" timestamp="1336521437271" thread="9"><log4j:message>new error</log4j:message>  and so on...

When I change the log4j with log4net it works fine in L4NDash. 

Can you please advise me how to configure the NLog target for xml compatible for L4NDash? 

thanks in advance