netcore 使用surging框架发布到docker (2)

netcore 使用surging框架发布到docker

 

由于代码很多地方相识,以下我只说Service.A,和Service.A.Service;

Service.A 中新增Configs文件夹,下面添加log4net.config,log4net.config代码如下:

<log4net> <root> <level value="Error" /> <!-- <appender-ref ref="RollingLogFileAppender" /> --> <appender-ref ref="ErrorRollingLogFileAppender" /> </root> <appender type="log4net.Appender.RollingFileAppender,log4net" LEVEL="ERROR"> <lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> <param value="c:\surging\Error\" /> <param value="true" /> <param value="Composite" /> <param value="_yyyyMMddHH.TXT" /> <param value="false" /> <param value="-1" /> <param value="5MB" /> <layout type="log4net.Layout.PatternLayout,log4net"> <param value="%date [%thread] %-5level %logger [%ndc] - %message%newline" /> </layout> <filter type="log4net.Filter.LevelRangeFilter"> <param value="ERROR" /> <param value="FATAL" /> </filter> </appender> </log4net>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpypys.html