I have created my own custom sink which inherits from the IObserver<EventEntry> class. This works fine for in-process logging. I want to use this with the out-of-process service. I cannot get this to work.
What do I have to do to use custom sinks in a out-of-process service?
Thanks for your help Damien
It sounds like you should just be able to edit the configuration file to add a
element to the config file with your type information (and parameters if necessary).
type ="CustomSinkExtension.EmailSink, CustomSinkExtension">
<eventSource name="MyCompany" level="Critical" />
gives some good examples of
Creating Custom Sinks
including both in and
Enterprise Library support engineer
Thanks for your reply.
I found my problem. The Developer's Guide documentation example doesn't work for the Email sink.
The IEventTextFormatter formatter must be defined in the Out-Of-Process sink configuration for this to work. Or if the Email sink class has a constructor without the IEventTextFormatter formatter, the customSink xml in the documentation will also work.
Thanks for your help