<appender name="SqlDatabase" type="log4net.Appender.AdoNetAppender">
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<connectionString value="Data Source=192.168.1.3\SQLEXPRESS,2296;Database=MyDatabase;User Id=MyUser;Pwd=password;Trusted_Connection=False;" />
<commandText value="INSERT INTO QMC_A_LOG ([THREAD],[LEVEL],[LOGGER],[MESSAGE], [EXCEPTION]) VALUES (@thread, @log_level, @logger, @message, @exception)"/>
<parameter>
<parameterName value="@thread" />
<dbType value="String" />
<size value="255" />
<layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%thread" />
</layout>
</parameter>
<parameter>
<parameterName value="@log_level" />
<dbType value="String" /> <size value="50" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level" />
</layout> </parameter>
<parameter> <parameterName value="@logger" />
<dbType value="String" />
<size value="255" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%logger" />
</layout> </parameter>
<parameter>
<parameterName value="@message" />
<dbType value="String" /> <size value="4000" />
<layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%message" />
</layout>
</parameter>
<parameter>
<parameterName value="@exception" /> <dbType value="String" />
<size value="4000" />
<layout type="log4net.Layout.ExceptionLayout" />
</parameter>
</appender>
Wednesday, July 2, 2008
Subscribe to:
Post Comments (Atom)
Check This Out!
More Links to Good Information
- December (1)
- October (1)
- January (1)
- September (1)
- February (2)
- January (2)
- May (3)
- February (1)
- May (1)
- October (1)
- January (1)
- August (1)
- March (1)
- May (1)
- March (1)
- January (1)
- March (1)
- December (2)
- September (2)
- June (1)
- February (1)
- January (1)
- October (1)
- December (2)
- November (1)
- August (4)
- July (14)
- June (10)
- May (9)
- April (2)
- February (4)
- January (2)
- December (7)
- October (10)
No comments:
Post a Comment