PyTorch Extension C++ Logs

Hello,
PyTorch extension header <torch/extension.h> provided us the macro TORCH_CHECK to do some runtime check. I wonder if there is something that allows us to write log information in PyTorch? Say a TORCH_LOG?
Best,
Lei