lib/log: Switch to pb_log_fn