[DF-2967] Added function to use pathname for log file