made the logger more configurable

Made the logger listener more configurable (see #924.)
I would use private visibility