add "no logging" option
I may be wrong, but I see no way to entirely avoid logging during training, which sometimes may be convenient for quick exploratory experiments.
I suggest to have
trainer = Trainer(logger=None) 
construct a trainer that does no logging at all