I'm using SLAB out-of-process to log ETW events in my applications.
Today I have a problem within WCF services hosted Under WcfTestClient.exe
When I put breakpoint into WriteEvent methods of my EventSource inherited class, IsEnabled() return false !!! So no event is written to my console log out-of-process :(
When starting my ConsoleEventSink, I can see my eventSource registered with a LogAlways level and None for MatchAnyKeyword property
Any idea to check what is wrong for this problem ?
Thanks in advance
You probably have an error in your
EventSourceclass.You can analyze your EventSource to see whether it is correctly defined. See https://dzimchuk.net/post/troubleshooting-slab-out-of-process-logging
There's a Nuget package for it: https://www.nuget.org/packages/EnterpriseLibrary.SemanticLogging.EventSourceAnalyzer/
Try creating a unit test for it and inspect the result
EDIT
A (non-official) port to .Net Core is available as well, see this package.