Display loss during training

Hi everyone who can help me, please how can i display the loss for each batch_size in during training. I am training a german to english model and i want to display the loss accumulated after each batch, so i want the display to be like (epoch, number of epoch, batch_size, acc, ppl,… LOSS, elapsed time). Can some really really help me