Added listener code as well as Logger

Use `Linq` for this. You can use  `Where` `Any`