Enabled users to define custom debug message listeners