add log change directory type