Wrapper to print to both file and console.