Use log callback instead of event listeners. This prevents log handlers ...

...from being leaked when transport is silent.