How to print each individual loss of the total loss when using Trainer of Hugging face for pre-training?

I have a loss function including two sub-loss functions (cross-entropy combining with MSE loss), how can I print each individual loss of this total loss when I use Trainer of Hugging face for training ?