开发者

Enterprise Library 5.0 Logging error in Event log as Event ID 6352

I am using Enterprise Library 5.0 for error loggin in WCF application. I have logging into SQL Database and if Database is down then logging into EventLog.

Problem is if Database is down or connection string is incorrect it logging in Appication Event Log with Event ID 6352 with all details.

Problem is if I am sending log to SQL server and sending Event ID as 5000, I want Enterprise Library to log in Event Log with Event ID 5000.

But Enterprise Library logging as Event ID 6352 and inside error deta开发者_Go百科il I have Event ID 5000.

How can I Log in Event Viewer with Event ID 5000 when SQL Server is down.


Currently, the Event ID for internal errors cannot be modified without changing the code for the LogWriter class, for which the source code is available and the license permits you to do so.

You may also want to suggest this as a feature request for future versions of EntLib.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜