set log generation path properly