Enterprise Library Database Trace Listener?

吃可爱长大的小学妹 提交于 2019-12-06 04:42:04

问题


I'm using EntLib v4 for Logging and currently I'm saving the events to the default text file listener.

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?

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.


回答1:


I just checked and its in the installation for the source. On my machine its in C:\EntLib4Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts.

You can use the createloggingdb.cmd file or parse loggingdatabase.sql yourself for the relevant commands.



来源:https://stackoverflow.com/questions/197410/enterprise-library-database-trace-listener

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!