This feels like something that should happen in the initialization of the SparkContext (maybe right after the listener bus is created). The logging of the event bus is a slightly decoupled concept from the UI. It would also make this statement a bit more functional since right now hooking up the event logger is basically a side-effect.