Added logging configuration to the search for different directories.