简体   繁体   中英

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 detail 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM