made the logger more configurable

Made the logger listener more configurable (see #924.)