Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - Log4Net Configuration & Schema
A simple programmers blog
 
# Thursday, June 09, 2011

I don’t often use log4net – at least, I use it on just about every project but I only set it up once every few months – so remembering the schema for the configuration is a drag.  Thankfully, a generous geek has created a schema for the config.  You can get it here.

After you download it, copy it to your Visual Studio Schemas folder.  For VS 08 this is C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas.  For 2010, it’s probably C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas.

Then with your web.config/app.config open in VS, view the properties and set the schema to include this. 

image

No need to restart VS, it will automatically detect the new schema in the folder. Intellisense will then tell you all you need to know.

Thursday, June 09, 2011 8:30:45 AM (New Zealand Standard Time, UTC+12:00)  #    Comments [0]   General  | 
Comments are closed.
Copyright © 2013 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: