How to add a customized logger to Trainer?

Hi every,
I init a root logger, using logginer.getLogger(). Then I add a FileHandler to the root logger.
It is supposed that the logging information produced by Trainer will be sent to the root logger. However, the logging file doesn’t contain those information.