logging operation to file