Add logging to both file and console.