change bgd log dir