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

This message may contain confidential and privileged information. If it has been sent to you in error, please reply to advise the sender of the error and then immediately delete it. If you are not the intended recipient, do not read, copy, disclose or otherwise use this message. The sender disclaims any liability for such unauthorized use. NOTE that all incoming emails sent to Gigamon email accounts will be archived and may be scanned by us and/or by external service providers to detect and prevent threats to our systems, investigate illegal or inappropriate behavior, and/or eliminate unsolicited promotional emails (“spam”).