enable logging to stdout and log file