码迷,mamicode.com
首页 > 数据库 > 详细

log4net sqlite

时间:2019-01-27 16:50:54      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:netapp   net   cti   and   pattern   string   coding   att   ons   

<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
<bufferSize value="10" />
<connectionType value="System.Data.SQLite.SQLiteConnection,System.Data.SQLite,Version=1.0.109.0,Culture=neutral,PublicKeyToken=db937bc2d44ff139" />
<connectionString value="Data Source=App_Data/Log.db" />
<commandText value="INSERT INTO Log (Date, Level, Logger, Message) VALUES (@Date, @Level, @Logger, @Message)" />
<parameter>
<parameterName value="@Date" />
<dbType value="DateTime" />
<layout type="log4net.Layout.RawTimeStampLayout" />
</parameter>
<parameter>
<parameterName value="@Level" />
<dbType value="String" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level" />
</layout>
</parameter>
<parameter>
<parameterName value="@Logger" />
<dbType value="String" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%logger" />
</layout>
</parameter>
<parameter>
<parameterName value="@Message" />
<dbType value="String" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%message" />
</layout>
</parameter>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="AdoNetAppender" />
</root>
</log4net>

log4net sqlite

标签:netapp   net   cti   and   pattern   string   coding   att   ons   

原文地址:https://www.cnblogs.com/gytangyao/p/10326249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!