There are two ways:
You can get it from the init.php init method by passing it a ModuleManger object, and then modulemanager-> getEventManager.
Or from the onBootstrap method again to Module.php, but not from ModuleManager, but using the application object, as Abdul did.
Remember that init and onBoostrap methods are triggered for each page request. Logging events there is good, but don't put heavy things in there. I prefer sharedEventManager as it is available even if the service is initializing in the future.
Hooray!
source share