NLog.MongoDB - A MongoDB Target for NLog

by Jason Wicker 3. October 2011 23:43

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=""
		<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: (728.05 kb)

Zipped Source here: (14.99 mb)

Tags: , ,


blog comments powered by Disqus

Stack Overflow

Month List