What is the use of listeners?

What is the use of listeners?

Listeners, as the name implies, have the ability to “listen” to an event. It is frequently used to customise reports and logs, as well as to adjust system behaviour.