How to log hparams for tensorboard?

Simple passing TrainingArguments to Trainer args doesn’t log hparams for tensorboard. What’s the way?