请问大家网站的日志都是怎么弄的,是用IIS本身的日志功能吗?
请问大家网站的日志都是怎么弄的,是用IIS本身的日志功能吗?在网上看了log4net的配置 但是有的文件不存在啊
------解决方案-------------------- <configSections>
<section name= "log4net " type= "log4net.Config.Log4NetConfigurationSectionHandler,log4net " />
</configSections>
<log4net>
<appender name= "LogFileAppender " type= "log4net.Appender.FileAppender ">
<!--定义文件存放位置-->
<file value= "FiSM_Client.log " />
<!-- Example using environment variables in params -->
<!-- <file value= "${TMP}\log-file.txt " /> -->
<!-- <sppendToFile value= "true " /> -->
<!-- An alternate output encoding can be specified -->
<!-- <encoding value= "unicodeFFFE " /> -->
<layout type= "log4net.Layout.PatternLayout ">
<!--每条日志末尾的文字说明-->
<!--footer value= "[Footer]-By icfcc corp. " /-->
<!--输出格式-->
<conversionPattern value= "%date [%thread] %-5level %logger [%ndc] <%property{auth}> - %message%newline " />
</layout>
</appender>
<!-- Set default logging level to DEBUG -->
<root>
<level value= "INFO " />
<appender-ref ref= "LogFileAppender " />
</root>
<!-- Set logging for Spring to INFO. Logger names in Spring
correspond to the namespace -->
<!-- Note in this example, the example code uses the logging name
Spring.Examples.MovieFinder.MovieApp -->
<logger name= "WWT1 ">
<level value= "INFO " />
</logger>
</log4net>
------解决方案--------------------这一段配置在哪边?我放在config中说无法识别配置节
-------------------------
加在web.config中,需要log4net组件!!!