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