Added logging functionality and added logging function to SwipeMill