add pathname to logger