Author: Roger Knapp
Url: http://csharptest.net/downloads/schema/log4net.xsd
Proj: http://csharptest.net/downloads/projects/log4net.config.zip
Date: November 7th, 2008
Rev: 1.01
Usage: You only need to add the following to the log4net element:
<log4net
xsi:noNamespaceSchemaLocation="http://csharptest.net/downloads/schema/log4net.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
(注:你要想得到智能提示,你只需要在log4net这个节点里加上xsi: xmlns:两个属性即可,赶快试试吧。)
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 <param name='x' ...> can be used in place of
the element <x ...>. For instance, the following are equivalent:
<maximumFileSize value="1MB" />
<param name="maximumFileSize" value="1MB" />
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.
出处: http://yelaiju.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· [AI/GPT/综述] AI Agent的设计模式综述