Risk of missing events from ETW logging with EventSource

前端 未结 3 1128
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 22:00

I\'m instrumenting my .NET 4.5 applications to emit ETW events using the EventSource class. The goal is to be able to capture some of these events (the Error le

3条回答
  •  青春惊慌失措
    2020-12-23 22:51

    Try to take a look at Semantic Log (MS Enterprise Library 6) http://msdn.microsoft.com/en-us/library/dn440729(v=pandp.60).aspx

    You can use Event Source and create listener to record your log to the event viewer or a file or db ( or create a custom solution )

    Update: I catch Event ID 806 / 807 even on an IoC scenario. In an interceptor, there was a part of code that instantiates my EventSource class: if you miss the reference of first instance all the others failed on constructor and raise event ids 806 / 807 when write events

    For logging big data it is possible to apply message splitting tecniques

提交回复
热议问题