Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
NLog is Awesome :)
travislaborde
follow
0
2-22-2008 11:30 AM
311 views
tags:
programming
,
.net
,
nlog
travislaborde
says:
So I've been meaning to give this one a try and I did it this morning. Not only did it "just work" very easily, but I was able to build a custom target on my very first try with ZERO problems.
Nuff Said
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
MSNBC's Network Chief Down Plays The Pers...
Free Online Courses from Great Universities
OH voting machines contain critical vote-d...
Cheezburger LOLz for ALLz
Jyte: lightweight reputation engine using ...
Hidden Surprises in .NET 3.5 Service Pack 1
Georgian Villagers Recount Tales Of Marauders
More clips from
travislaborde
Magic Windows Trick: Query and Reset Termi...
New New Old Job Today!
I Start at a New Job Today!
Today's Top Clips
36 views of Mt Fuji
High speed waterfigures image & video - magnificent!
Robotic Exoskeleton Allows a Paralyzed Man to Walk - inspirational!
Halliburton Sued for ‘Human Trafficking’
Another Stonehenge Found Deep In Amazon Forest
An Ecstasy of Tomatoes
Animal Hair Styles
Why Everyone Should Be in Favor of Reducing Taxes on the Rich
London from above at night
McCain's VP pick...
visit the
Top Clips page
View the Top Clips from
February 22, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/345f2ea5-92c0-4b39-99ba-11e25a296c46/5F49DECF-59BA-40FF-B1A1-A6D058BF61F7/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.nlog-project.org/introduction.html" href="http://www.nlog-project.org/introduction.html" style="font-size: 11px;">www.nlog-project.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/introduction.html"><div align="center"><img src="http://content9.clipmarks.com/blog_cache/www.nlog-project.org/img/B3DDA486-F2F9-434C-9DA5-18BB63AE9CC2" alt="" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/introduction.html"><P> NLog is a .NET logging library designed with simplicity and flexibility in mind. With NLog you can process diagnostic messages emitted from any .NET language, augment them with <A href="http://www.nlog-project.org/layoutrenderers.html">contextual information</A>, format them according to your preference and send them to one or more <A href="http://www.nlog-project.org/targets.html">targets</A>. </P></blockquote><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content7.clipmarks.com/images/clip-icon.gif" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.nlog-project.org/tutorial.html" href="http://www.nlog-project.org/tutorial.html" style="font-size: 11px;">www.nlog-project.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/tutorial.html"><SPAN>using</SPAN> NLog;</blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/tutorial.html"><SPAN>private</SPAN> <SPAN>static</SPAN> Logger logger = LogManager.GetCurrentClassLogger();</blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/tutorial.html">logger.Debug(<SPAN>"Hello World!"</SPAN>); </blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nlog-project.org/tutorial.html"><PRE class="example"><CODE lang="XML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" hl="1"><SPAN><</SPAN><SPAN>nlog</SPAN> <SPAN>xmlns</SPAN><SPAN>=</SPAN><SPAN>"http://www.nlog-project.org/schemas/NLog.xsd"</SPAN> <SPAN>xmlns:xsi</SPAN><SPAN>=</SPAN><SPAN>"http://www.w3.org/2001/XMLSchema-instance"</SPAN><SPAN>></SPAN> <SPAN><</SPAN><SPAN>targets</SPAN><SPAN>></SPAN> <SPAN><</SPAN><SPAN>target</SPAN> <SPAN>name</SPAN><SPAN>=</SPAN><SPAN>"console"</SPAN> <SPAN>xsi:type</SPAN><SPAN>=</SPAN><SPAN>"ColoredConsole"</SPAN> <SPAN>layout</SPAN><SPAN>=</SPAN><SPAN>"${date:format=HH\:mm\:ss}|${level}|${stacktrace}|${message}"</SPAN><SPAN>/></SPAN> <SPAN><</SPAN><SPAN>target</SPAN> <SPAN>name</SPAN><SPAN>=</SPAN><SPAN>"file"</SPAN> <SPAN>xsi:type</SPAN><SPAN>=</SPAN><SPAN>"File"</SPAN> <SPAN>fileName</SPAN><SPAN>=</SPAN><SPAN>"${basedir}/file.txt"</SPAN> <SPAN>layout</SPAN><SPAN>=</SPAN><SPAN>"${stacktrace} ${message}"</SPAN><SPAN>/></SPAN> <SPAN></</SPAN><SPAN>targets</SPAN><SPAN>></SPAN> <SPAN><</SPAN><SPAN>rules</SPAN><SPAN>></SPAN> <SPAN><</SPAN><SPAN>logger</SPAN> <SPAN>name</SPAN><SPAN>=</SPAN><SPAN>"*"</SPAN> <SPAN>minlevel</SPAN><SPAN>=</SPAN><SPAN>"Trace"</SPAN> <SPAN>writeTo</SPAN><SPAN>=</SPAN><SPAN>"console,file"</SPAN><SPAN>/></SPAN> <SPAN></</SPAN><SPAN>rules</SPAN><SPAN>></SPAN> <SPAN></</SPAN><SPAN>nlog</SPAN><SPAN>></SPAN> </CODE></PRE></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/5F49DECF-59BA-40FF-B1A1-A6D058BF61F7/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK