{ independency injection }

NLog.MongoDB - A MongoDB Target for NLog

I've been playing with MongoDB quite a bit lately to wrap my head around it. 

We use NLog at work, and I thought MongoDB would be a great way to store NLog entries so I threw this MongoDB target to connect the two.

To install, place the binaries in your bin, and configure NLog like so: 

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
		<add assembly="NLog.MongoDB"/>

		<target name="Mongo" type="MongoDB" host="localhost" port="27017"/>
		<logger name="*" minLevel="Info" appendTo="Mongo"/>

Fork it on GitHub


Get the binaries here:

NLog.MongoDB.Binaries.zip (728.05 kb)

Zipped Source here:

NLog.MongoDB.zip (14.99 mb)