Hi,
I am looking to add timestamp while logging using
rte_openlog_stream function where you pass the file pointer as a parameter to this function.
Below is the snippet :
const char *dpdk_log_path = "/var/log/dpdk.log"
log_fp = fopen(dpdk_log_path, "a+");
if (log_fp == NULL) {
EHAL_LOG(LOG_ERR, "dpdk log file(%s) open failed, error (%d:%s) ",
dpdk_log_path, errno, strerror(errno));
return (errno);
rte_openlog_stream(log_fp);
Thanks,
Soumya