Log prediction to file