receiving light events and logging them.