created getter method for log_direcotry