Modify loggingmoudle to print out to file