<log4net>
        <appender name="SystemLogAppender" type="log4net.Appender.RollingFileAppender">
            <rollingStyle value="Date" />
            <datePattern value="yyyyMMdd" />
            <file value="c:\temp\agr\agr_service.log" />
            <encoding value="utf-8" />
            <appendToFile value="true" />
            <maxSizeRollBackups value="30" />
            <immediateFlush value="true" />
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="[%-5level %d{yyMMdd-HHmmss} %logger{3}] %m%n%exception" />
            </layout>
        </appender>
        <root>
            <level value="INFO" />
            <appender-ref ref="SystemLogAppender" />
        </root>
    </log4net>

边城
59.8k 声望29.6k 粉丝

一路从后端走来,终于走在了前端!


引用和评论

0 条评论