Creating a custom sink

Topics: Building and extending application blocks, Semantic Logging Application Block
May 16, 2013 at 6:54 AM
Edited May 16, 2013 at 6:54 AM
A custom sink is merely an implementation of IObserver<EventEntry>.
This has three public methods: OnNext(EventEntry), OnError(Exception), and OnComplete().
  • OnNext(EventEntry) is the main workhorse that writes each log message
  • OnError(Exception), handles exceptions
  • OnComplete() informs the sink that no more log messages are coming.
My question: when does OnError get called by the listener?