add logging class dedicated to logging
make logger configurable and add logging to pub/sub sides