Preface:
Please be aware that though this xsd attempts to cover most of the usages you
will encounter with log4net configurations it is by no means complete. The
primary reason (excuse) for this is that the xml format used by log4net config
files does not conform to any real standard. This is both it's primary
weakness and it's strength. As such there are a few things you should know
about how log4net interprets your configuration before creating one.
Firstly most of the elements described in this document are really not needed.
This is due to the fact that a can be used in place of
the element . For instance, the following are equivalent:
So Why Use This Xsd?:
This xsd attempts to utilize the former convention and to declare as much as
possible for the benefit of auto-completion and sanity checking. However,
since most of the param names vary by the containing element's 'type' attribute
it is impossible to describe this correctly in xsd (at least to my knowledge).
So use this schema if you like and remember that there is life beyond it's
limited capability.
If you would like to contribute back to this schema you can send email to the
follow address (remove all the spaces and slashes): schema / @ / csharptest.net
Be sure to include the schema name "log4net.xsd" in the subject-line. If you
know someone on the log4net project please convince them to adopt a schema,
I don't care which one, just have one.
Legal:
Copyright 2008 by Roger Knapp
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]>