Export log messages using EventEmitter