Well I have uploaded the first of many useful things I hope. Over the past few days I’ve been working to improve our product’s logging. We use log4net but I have little experience with it as it is masked under our own logging api.

Configuring log4net is not one of it’s strong points. I quickly realized the need for a xsd (xml schema) for it’s configuration. After a few hours on google I came to the conclusion that no such thing exists. Then I started getting familiar with log4net and started to realize two things… first a true xsd was not possible, second I still wanted one.

So what better way to learn how to configure log4net than to go write an xsd? Off I went only to loose a day of work ;) None-the-less I did produce a reasonable xsd and have uploaded it as well as the C# I used to generate the xsd.

The xsd can be found at:

The C# project that contains the XmlSerializable classes that were used to generate the above schema is also available. This can be found at:

For those of you new to log4net configuration I think it will be a blessing. For those needing to read/write the schema, it should be a good start.