Created QLOG_TRACE_FN macro and use it everywhere