allow user to disable logger

logger = false will disable stdout.