Added new function called locate to parse through the log directory.