记录到数据库 [英] logging to the database

查看:143
本文介绍了记录到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的项目是使用Visual Studio 2010(c#)将日志记录模块实现到sql数据库.我正在使用带有tracelistener的日志记录应用程序块.我想读取事件日志中的日志,然后将这些日志记录到数据库中....我不知道如何读取我的日志以及如何将它们连接到日志记录应用程序块中. br/>
我的问候

hi ,
my project is to implement logging module to the sql database using visual studio 2010 (c#). am using logging application block with tracelistener . i want to read logs in the event log and then logging these logs to the database .... i don`t know how to read my logs and how to connect them to the logging application block .... any help pleas .

with my regard

推荐答案

本文定义了一种读取日志的简单方法,然后您可以编写自己的代码以写入数据库.寻找功能-btnReadLog_Click:
http://support.microsoft.com/kb/815314 [
This article defines a simple way to read logs and then you can write your own code to write in the database. Look for the function - btnReadLog_Click :
http://support.microsoft.com/kb/815314[^]
Hope it helps....


这篇关于记录到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆