我在网上看示例一般都是配出来就没了,现在我也能配了,但看那些XML里面还是有很多参数不明白
有谁有一份比较完整的配置中文说明如 像这样的能把整个XML的每一个配置节进行中文说明的    <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
      <!--日志文件路径-->
      <param name="File" value="Upload\\Logs\\Log4Net.log"/>
      <appendToFile value="true" /> ??具体作用
      <rollingStyle value="Size" /> ??具体作用
      <maxSizeRollBackups value="10" /> ??具体作用
      <maximumFileSize value="100KB" /> ??具体作用
      <staticLogFileName value="true" /> ??具体作用
      <layout type="log4net.Layout.PatternLayout">
        <!--输出样式-->
        <param name="ConversionPattern" value="%d [%t] %-5p %c %m%n"/>
      </layout>
    </appender>谢谢

解决方案 »

  1.   

    http://www.cnblogs.com/tainylong/articles/770076.html
      

  2.   

    你可以google,google没有就没有了
      

  3.   

    google对了。。网上好多写的Blog其实是同一编文章
    然后现在我也是照着那些东西做的
    日志功能是可以了
    但是有很多的配置不太明白是什么意思
    所以想要一个比较全的中文配置节说明谢谢
      

  4.   

    Log4net详细介绍 
      

  5.   


    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
        <file value="log.txt" />
        <appendToFile value="true" />
        <rollingStyle value="Size" />
        <maxSizeRollBackups value="10" />
        <maximumFileSize value="100KB" />
        <staticLogFileName value="true" />
        <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
        </layout>
    </appender>
    The following example shows how to configure the RollingFileAppender to write to the file log.txt. The file written to will always be called log.txt because the StaticLogFileName param is specified. The file will be rolled based on a size constraint (RollingStyle). Up to 10 (MaxSizeRollBackups) old files of 100 KB each (MaximumFileSize) will be kept. These rolled files will be named: log.txt.1, log.txt.2, log.txt.3, etc... 
      

  6.   

    The following example shows how to configure the RollingFileAppender to write to the file log.txt. The file written to will always be called log.txt because the StaticLogFileName param is specified. The file will be rolled based on a size constraint (RollingStyle). Up to 10 (MaxSizeRollBackups) old files of 100 KB each (MaximumFileSize) will be kept. These rolled files will be named: log.txt.1, log.txt.2, log.txt.3, etc...