made the logger more configurable

Made the logger listener more configurable (see #924.)
we are not using private that much in Silex.