Aggregate all episodes-IDs by iteration

If there is a direct configuration available to aggregate all episodes-IDs by iteration and subsequently log them at the end of each iteration in PPOTraining? or do I have to write a CustomPPOTrainer(PPOTrainer) by inheriting PPOTrainer. ?