Why can the printk function print from the serial port, but log_info can not print out?

When I opened the demo project, log_inf could not print in serial port or in RTT, but I changed log_inf to printk and it can print, why, I want to print with log_inf now how to achieve

Related