Added logging capabilities to the WeakEventSource via a logger delegate.