eventLoop allows 'log' to be overriden.