Well, some would say that trainer "miles" aren't real, and should not be logged as such. Without wind resistance and hills, it's not easy to calculate equivalent mileage on a trainer.
In my CycliStats ride logger software, trainer rides can be logged with time only, or with time and distance. I'm under the impression that most users of the program log only the time they spend on the trainer.