Added pluggable logging