企业库数据库跟踪侦听器? [英] Enterprise Library Database Trace Listener?
问题描述
我正在使用EntLib v4进行日志记录,当前将事件保存到默认的文本文件侦听器中。
I'm using EntLib v4 for Logging and currently I'm saving the events to the default text file listener.
我想使用MS SQL数据库作为我的事件接收器,我已经知道已经提供了数据库侦听器,但是我不知道如何创建日志记录数据库和存储过程?
I would like to use MS SQL database as my event sink and I saw that the database listener is already provided, but I don't know how to create logging database and stored procedures?
在谷歌搜索之后,我看到了在v3中,数据库创建脚本与EntLib一起提供,但是在v4中找不到它们。
After googling around I saw that in v3 the database creation scripts were shipped with the EntLib, but I can't find them in v4.
推荐答案
我刚刚检查了及其在安装源中。在我的机器上,它在 C:\EntLib4Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts
中。
I just checked and its in the installation for the source. On my machine its in C:\EntLib4Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts
.
您可以使用createloggingdb.cmd文件或自行解析loggingdatabase.sql以获取相关命令。
You can use the createloggingdb.cmd file or parse loggingdatabase.sql yourself for the relevant commands.
这篇关于企业库数据库跟踪侦听器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!