update logging to stdout and file