Can I NOT use the "sample::gLogger" when using TensorRT?

Can I avoid using sample::gLogger as demonstrated in the SampleYolo.cpp of the tensorrt_yolov4 program in the following link?

My issue is, I do not want to use the logger and it does not seem I can use nullptr in this case as some of the functions parameter in SampleYolo.cpp use the reference of sample::gLogger as the parameter instead of the pointer.

Please advice.

Hi @caruofc,
Logger is necessary in TRT, if you do not want gLogger we provided, you may have to write a logger yourself.