This project is read-only.
1
Vote

Sematic Logging Out of Process Serive Error Codes

description

Hi,

I am using sementic logging out of process service and trying to do Non-functional testing. Basically i was tring to generate error codes given in https://msdn.microsoft.com/en-us/library/dn774984(v=pandp.20).aspx link.

I have changed database name to some non-existing database. This out of process service is running but it is generating error code as 0. and rest all information (Event ID 101) like procider id, event id is coming in
Event Data tag.
Kindly let me know how to generate event id 101 as error code -
  • <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  • <System>
    <Provider Name="Enterprise Library Semantic Logging Service" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-04-17T14:05:53.000000000Z" />
    <EventRecordID>218836</EventRecordID>
    <Channel>Application</Channel>
    <Computer>....</Computer>
    <Security />
    </System>
  • <EventData>
    <Data>ProviderId : d1ed7ec7-5701-5554-2c5e-796dc42511c5 EventId : 101 Keywords : 1 Level : Error Message : A database sink failed to publish events. Message: System.Data.SqlClient.SqlException (0x80131904):
    .....

comments