librte_log: add function to retrieve log_level